diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-03-02 15:23:50 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-03-02 15:23:50 +0100 |
commit | fab9dad940d6db15bb671a557fd51d1241e4ecbe (patch) | |
tree | 2abeb386408dcb0e577bad0133de643f1d929f3d /web | |
parent | a1c76814e77751d79a7ea41db5036bc176089f86 (diff) | |
parent | 035f482a444396e5c671c3350a0ea81ede8a66a1 (diff) | |
download | mitmproxy-fab9dad940d6db15bb671a557fd51d1241e4ecbe.tar.gz mitmproxy-fab9dad940d6db15bb671a557fd51d1241e4ecbe.tar.bz2 mitmproxy-fab9dad940d6db15bb671a557fd51d1241e4ecbe.zip |
Merge pull request #992 from gzzhanghao/gulp
[web] gulp: log errors from buildScript/bundle
Diffstat (limited to 'web')
-rw-r--r-- | web/gulpfile.js | 4 |
1 files changed, 4 insertions, 0 deletions
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()) |