Open holic opened 9 years ago
You can do this:
function handleError(err) {
// ...
}
gulp.task('example', function () {
return browserify({ debug: true })
.bundle()
.on('error', handleError)
.pipe(plumber(handleError))
.pipe(source('example.js'))
.pipe(buffer())
.pipe(gulp.dest('dist/js'))
})
It would be great if we could use the same error handler when some plugins require explicitly handling errors (e.g. browserify).