[web] gulp: log errors from buildScript/bundle

This commit is contained in:
Jason 2016-03-02 22:14:28 +08:00
parent 8089752cb2
commit 035f482a44

View File

@ -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())