diff --git a/utils/build.js b/utils/build.js index afa0b9b1f..3234ae915 100755 --- a/utils/build.js +++ b/utils/build.js @@ -22,6 +22,9 @@ config.plugins = (config.plugins || []).concat( }) ); -webpack(config, function (err) { - if (err) throw err; +webpack(config, (err, stats) => { + if (err || stats.hasErrors()) { + console.error('stats:', stats.toString({ colors: true })); + } + // Done processing });