mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-02 02:37:15 +00:00
Merge pull request #992 from gzzhanghao/gulp
[web] gulp: log errors from buildScript/bundle
This commit is contained in:
commit
fab9dad940
1 changed files with 4 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue