L
L
Ler Den2016-12-06 02:31:33
ruby gems
Ler Den, 2016-12-06 02:31:33

Why is gulp-ruby-sass ignoring my path?

'use strict';

var gulp = require('gulp');
var gulpif = require('gulp-if');
var rename = require('gulp-rename');
var csso = require('gulp-csso');
var autoprefixer = require('gulp-autoprefixer');
var sass = require('gulp-ruby-sass');

var sassOptions = {
    style: 'compressed',
    'sourcemap=none': true
};

function handleError(err) {
    console.log(err.toString());
    this.emit('end');
}

module.exports = gulp.task('styles', function () {
    return gulp.src(config.paths.src.styles)
        .pipe(sass(sassOptions).on('error', handleError))
        .pipe(autoprefixer('last 1 version'))
        .pipe(gulpif(release, csso()))
        .pipe(gulpif(release, rename(config.filenames.release.styles), rename(config.filenames.build.styles)))
        .pipe(gulpif(release, gulp.dest(config.paths.dest.release.styles), gulp.dest(config.paths.dest.build.styles))); // ПРОБЛЕМА ЗДЕСЬ
});

I downloaded the repository from here https://github.com/expressly/angular-browserify-seed
The problem is that gulp does not work quite as we would like, namely, the styles are not compiled into the folder config.paths.dest.build.styles, but into
gulp-ruby-sass: write ../../../../../cjdelgado/AppData/Local/Temp/gulp-ruby-sass/index.css
. It's been four hours now and I can't figure out what's wrong. Help me please.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question