add custom errorHandler to gulp-plumber

This commit is contained in:
Sebastian McKenzie 2015-11-08 06:23:21 -08:00
parent 6c2cc17d1d
commit fc1653694f

View File

@ -15,7 +15,11 @@ gulp.task("default", ["build"]);
gulp.task("build", function () {
return gulp.src(scripts)
.pipe(plumber())
.pipe(plumber({
errorHandler: function (err) {
gutil.log(err.stack);
}
}))
.pipe(through.obj(function (file, enc, callback) {
file._path = file.path;
file.path = file.path.replace(/^([^\\]+)\/src/, "$1/lib");