Answer the question
In order to leave comments, you need to log in
Running gulp after an error?
Good afternoon! I have the following question.
At the moment, my gulpfile is configured in such a way that when an error occurs, it knocks out (as if I pressed CTRL + C) and in order to run it again, you need to enter the gulp command, for example.
And the question is ... how in this case, after I have corrected all the errors, launch it with the CTRL + S command?
I will be grateful for your help!
Answer the question
In order to leave comments, you need to log in
function handleError(err) {
console.log(err.toString());
this.emit('end');
}
gulp.task('styles', function() { //gulp-sass
return gulp.src('_/components/sass/*.sass')
.pipe(sass({ style: 'expanded' }))
.on('error', handleError)
.pipe(gulp.dest('public_html/assets/css'))
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question