A
A
Andrey2017-02-25 05:23:31
gulp.js
Andrey, 2017-02-25 05:23:31

How to skip file in Gulp task?

Tell me guys, there is a colors.scss file and the rest * .scss in short, you need it to be compiled in the same way but not compressed

gulp.task('css', function () {
    gulp.src(path.src.style)
        .pipe(plumber())
        .pipe(gulpif(envDev, sourcemaps.init()))
        .pipe(sass().on('error', sass.logError))
        .pipe(gulpif(envDev, sourcemaps.write("./maps")))
        .pipe(gulpif(!envDev, prefixer({browsers: prefixerBrowsers, cascade: false})))
        .pipe(gulpif(!envDev, combineMq()))
        .pipe(gulpif(!envDev , cssmin({restructuring: false})))
        .pipe(gulp.dest(path.build.css));
});

in short, so that everything works for him except .pipe(gulpif(!envDev , cssmin({restructuring: false})))

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