From 3ddd43adba606da16891271044eb6b43b195986f Mon Sep 17 00:00:00 2001 From: jos Date: Wed, 15 Apr 2015 21:16:20 +0200 Subject: [PATCH] Fixed outputting errors from webpack/babel-loader --- gulpfile.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 96d51077..4e7e07a9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -52,9 +52,9 @@ var webpackConfig = { wrappedContextRegExp: /$^/ }, plugins: [ bannerPlugin ], - cache: true, - debug: true, - bail: true + cache: true + //debug: true, + //bail: true }; var uglifyConfig = { @@ -79,8 +79,17 @@ gulp.task('bundle-js', ['clean'], function (cb) { compiler.run(function (err, stats) { if (err) { gutil.log(err.toString()); + } + + // output soft errors + stats.compilation.errors.forEach(function (err) { + gutil.log(err); + }); + + if (err || stats.compilation.errors.length > 0) { gutil.beep(); // TODO: this does not work on my system } + cb(); }); });