Skip to content

Commit

Permalink
Merge pull request #1078 from lneveu/fix/process-exit-hang
Browse files Browse the repository at this point in the history
fix: fix webpack hanging under certain circumstance
  • Loading branch information
evenstensberg committed Sep 17, 2019
2 parents 7b1e946 + ee001bd commit a1341bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/cli.js
Expand Up @@ -314,7 +314,8 @@ For more information, see https://webpack.js.org/api/cli/.`);
lastHash = null;
console.error(err.stack || err);
if (err.details) console.error(err.details);
process.exit(1); // eslint-disable-line
process.exitCode = 1;
return;
}
if (outputOptions.json) {
stdout.write(JSON.stringify(stats.toJson(outputOptions), null, 2) + "\n");
Expand Down

0 comments on commit a1341bd

Please sign in to comment.