From 6d168384a1384bfec4ca49ef79909f3c766f7344 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Sat, 30 Jan 2021 02:02:59 +0100 Subject: [PATCH] Increase build speeds for Sass by using sync mode --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index f069552..5f32bff 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -14,7 +14,7 @@ function html() { function css() { return gulp.src('./src/style/*.scss') - .pipe(sass().on('error', sass.logError)) + .pipe(sass.sync().on('error', sass.logError)) .pipe(postcss([require('autoprefixer'), require('cssnano')])) .pipe(gulp.dest('./dist/')); }