Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit 37e84f6

Browse files
committed
update gulp-beautify scripts error handling
Update gulp-beautify to 2.0.0 (now using js-beautify) added a plumber to the scripts task.
1 parent ab38829 commit 37e84f6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

gulpfile.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ gulp.task('templates', function() {
104104

105105
gulp.task('scripts', function() {
106106
return gulp.src(routes.scripts.js)
107+
.pipe(plumber({
108+
errorHandler: notify.onError({
109+
title: "Error: Babel and Concat failed.",
110+
message:"<%= error.message %>"
111+
})
112+
}))
107113
.pipe(concat('script.js'))
108114
.pipe(babel())
109115
.pipe(uglify())

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"gulp": "^3.9.0",
2727
"gulp-autoprefixer": "^3.0.1",
2828
"gulp-babel": "^5.2.1",
29-
"gulp-beautify": "^1.1.2",
29+
"gulp-beautify": "^2.0.0",
3030
"gulp-concat": "^2.6.0",
3131
"gulp-cssimport": "^2.1.1",
3232
"gulp-imagemin": "^2.3.0",

0 commit comments

Comments
 (0)