gulp-plumber: Fails on return
Hey there!
AWESOME π patch, love it so much!
I noticed if I return the stream in a task, βwatchβ freezes after a stream error:
gulp.task('styles', function() {
return gulp.src('application/static/style/*.scss')
.pipe(plumber())
.pipe(sass())
.pipe(gulp.dest('public/static/style/'));
});
If I remove βreturnβ it doesnβt freeze, when an error occurs:
gulp.task('styles', function() {
gulp.src('application/static/style/*.scss')
.pipe(plumber())
.pipe(sass())
.pipe(gulp.dest('public/static/style/'));
});
Returning the stream is mentioned in the gulp docs here: https://github.com/gulpjs/gulp/blob/master/docs/API.md#async-task-support
Thanks! π
About this issue
- Original URL
- State: open
- Created 10 years ago
- Comments: 21 (3 by maintainers)
Links to this issue
- gulp-watch + gulp-notify + browser-sync γ§ιηΊεΉηγ’γγγε³γ - Gulp γ§δ½γ Web γγγ³γγ¨γ³γιηΊη°ε’ #2 | Recruit Tech Blog
- gulp-watch + gulp-notify + browser-sync γ§ιηΊεΉηγ’γγγε³γ β Gulp γ§δ½γ Web γγγ³γγ¨γ³γιηΊη°ε’ #2 β PSYENCE:MEDIA
I had same issue with gulp-stylus. Emitting
end
from the custom error handler seems to fix it: