From d5c37418956ab6916bac35863a855da755cb2e2a Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Mon, 30 Nov 2015 21:32:32 -0800 Subject: [PATCH] [BT-163]: Display compileJs task errors in terminal. --- src/compileJs.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compileJs.js b/src/compileJs.js index ee02a55..5fd4942 100644 --- a/src/compileJs.js +++ b/src/compileJs.js @@ -58,6 +58,10 @@ module.exports = customConfig => { function compileJs() { const bundle = bundler.bundle(); return bundle + .on('error', function onCompileJsError(error) { + gulpUtil.log(gulpUtil.colors.red(error.message)); + this.emit('end'); + }) .pipe(vinylSourceStream('dist.js')) .pipe(gulp.dest(config.dst)); }