Answer the question
In order to leave comments, you need to log in
Gulp how to disable compilation process stop on errors in sass?
Hello, how can I make it so that when errors appear in sass files during work, gulp does not stop the work process, but only notifies about it in the console, while browser-sync and other plugins work?
Answer the question
In order to leave comments, you need to log in
I don't know if this will completely solve the problem, but for me it's like this:
gulp.task('styles', function () {
return gulp.src('less/styles.less')
.pipe(less())
.on('error', function (err) {
console.log(err);
this.emit('end');
})
.pipe(autoprefixer({
browsers: ['> 0.5%', 'last 3 versions'],
}))
.pipe(gulp.dest('css/'));
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question