Increase build speeds for Sass by using sync mode

This commit is contained in:
Nikita Karamov 2021-01-30 02:02:59 +01:00
parent a95f3ab4d7
commit 6d168384a1
No known key found for this signature in database
GPG key ID: EA4E7DECEEA050E4

View file

@ -14,7 +14,7 @@ function html() {
function css() { function css() {
return gulp.src('./src/style/*.scss') 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(postcss([require('autoprefixer'), require('cssnano')]))
.pipe(gulp.dest('./dist/')); .pipe(gulp.dest('./dist/'));
} }