Closed gajus closed 7 years ago
import plumber from 'gulp-plumber'; export default (gulp, plumberOptions = {}) => { let gulpSrc; gulpSrc = gulp.src; return (...args) => { return gulpSrc .apply(gulp, args) .pipe(plumber(plumberOptions)) }; };
Then user can simply do:
import gulp from 'gulp'; import { patchGulpSrc } from 'gulp-plumber'; gulp.src = patchSrc(gulp);
Combining streams to handle errors is possible workaround for this. I strongly believe that gulp should handle this internally.
Then user can simply do: