From 035f482a444396e5c671c3350a0ea81ede8a66a1 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 2 Mar 2016 22:14:28 +0800 Subject: [web] gulp: log errors from buildScript/bundle --- web/gulpfile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/gulpfile.js b/web/gulpfile.js index 58f74098..3c2e3f15 100644 --- a/web/gulpfile.js +++ b/web/gulpfile.js @@ -96,6 +96,10 @@ function buildScript(bundler, filename, dev) { function rebundle() { return bundler.bundle() + .on('error', function(error) { + gutil.log(error + '\n' + error.codeFrame); + this.emit('end'); + }) .pipe(dev ? plumber(handleError) : gutil.noop()) .pipe(source('bundle.js')) .pipe(buffer()) -- cgit v1.2.3