Skip to content

Commit

Permalink
fixes bug where dev server doesnt close after webpack compile error (#…
Browse files Browse the repository at this point in the history
…167)

* fixes bug where dev server doesnt close after webpack compile error

* code review feedback
  • Loading branch information
ccpricenytimes authored and delambo committed Sep 21, 2016
1 parent 7e7ca35 commit af786d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/actions/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const { buildPath, serverSrcPath } = require('../../utils/paths')();
module.exports = (config) => {
logger.start('Starting development build...');

// Kill the server on exit.
process.on('SIGINT', process.exit);

let clientCompiler;
let serverCompiler;
const { clientConfig, serverConfig } = buildConfigs(config);
Expand Down

0 comments on commit af786d7

Please sign in to comment.