add custom errorHandler to gulp-plumber
This commit is contained in:
parent
6c2cc17d1d
commit
fc1653694f
@ -15,7 +15,11 @@ gulp.task("default", ["build"]);
|
|||||||
|
|
||||||
gulp.task("build", function () {
|
gulp.task("build", function () {
|
||||||
return gulp.src(scripts)
|
return gulp.src(scripts)
|
||||||
.pipe(plumber())
|
.pipe(plumber({
|
||||||
|
errorHandler: function (err) {
|
||||||
|
gutil.log(err.stack);
|
||||||
|
}
|
||||||
|
}))
|
||||||
.pipe(through.obj(function (file, enc, callback) {
|
.pipe(through.obj(function (file, enc, callback) {
|
||||||
file._path = file.path;
|
file._path = file.path;
|
||||||
file.path = file.path.replace(/^([^\\]+)\/src/, "$1/lib");
|
file.path = file.path.replace(/^([^\\]+)\/src/, "$1/lib");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user