mirror of https://github.com/webpack/webpack.git
parent
a2af69056a
commit
0c8d94fa59
|
@ -167,4 +167,9 @@ var compiler = webpack(options, function(err, stats) {
|
||||||
lastHash = stats.hash;
|
lastHash = stats.hash;
|
||||||
process.stdout.write(stats.toString(outputOptions) + "\n");
|
process.stdout.write(stats.toString(outputOptions) + "\n");
|
||||||
}
|
}
|
||||||
|
if(!options.watch && stats.hasErrors()) {
|
||||||
|
process.on("exit", function() {
|
||||||
|
process.exit(2);
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue