Skip to content

Commit 937d65c

Browse files
committed
fixup webpack error handling
1 parent d5a618c commit 937d65c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/util/browserify_wrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ module.exports = function _bundle(pathToIndex, pathToBundle, opts, cb) {
7272
compiler = webpack(config);
7373

7474
compiler.run(function(err, stats) {
75-
console.log(stats);
76-
7775
if(err) {
7876
console.log('err:', err);
77+
} else if(stats.errors && stats.errors.length) {
78+
console.log('stats.errors:', stats.errors);
7979
} else {
8080
console.log('success:', config.output.path + '/' + config.output.filename);
8181

0 commit comments

Comments
 (0)