Increase build speeds for Sass by using sync mode
This commit is contained in:
parent
a95f3ab4d7
commit
6d168384a1
1 changed files with 1 additions and 1 deletions
|
@ -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/'));
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue