mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-01-12 17:32:27 +08:00
[web] gulp: log errors from buildScript/bundle
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user