summaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-07-20 04:16:50 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-07-20 04:16:50 +0200
commit1f8c3af5f9143cecaf977f9396c3c8ee7f909735 (patch)
treebfc93fd8f72c455d19a479e3c0beb8321e9690b4 /gulpfile.js
parenta8bd05298eccf3ac3f89afca4b28856fbb1be82f (diff)
downloadwallet-core-1f8c3af5f9143cecaf977f9396c3c8ee7f909735.tar.gz
wallet-core-1f8c3af5f9143cecaf977f9396c3c8ee7f909735.tar.bz2
wallet-core-1f8c3af5f9143cecaf977f9396c3c8ee7f909735.zip
do not swallow errors
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js
index cff034b52..ae3cdee31 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -166,9 +166,14 @@ gulp.task("dist-prod", ["compile-prod"], function () {
gulp.task("compile-prod", function (callback) {
let config = require("./webpack.config.js")({prod: true});
webpack(config, function(err, stats) {
- if(err) {
+ if (err) {
throw new gutil.PluginError("webpack", err);
}
+ if (stats.hasErrors() || stats.hasWarnins) {
+ gutil.log("[webpack]", stats.toString({
+ colors: true,
+ }));
+ }
callback();
});
});