mirror of https://github.com/webpack/webpack.git
parent
48aad3eeee
commit
e8976b7c9d
|
@ -121,6 +121,11 @@ Error.stackTrackLimit = 30;
|
||||||
webpack(options, function(err, stats) {
|
webpack(options, function(err, stats) {
|
||||||
if(err) {
|
if(err) {
|
||||||
console.error(err.stack || err);
|
console.error(err.stack || err);
|
||||||
|
if(!options.watch) {
|
||||||
|
process.on("exit", function() {
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(outputOptions.json)
|
if(outputOptions.json)
|
||||||
|
|
Loading…
Reference in New Issue