From af786d7b9a7d2b0834bdaa2b20be7b9268656934 Mon Sep 17 00:00:00 2001 From: Carrie Price Date: Wed, 21 Sep 2016 17:44:11 -0400 Subject: [PATCH] fixes bug where dev server doesnt close after webpack compile error (#167) * fixes bug where dev server doesnt close after webpack compile error * code review feedback --- cli/actions/dev.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/actions/dev.js b/cli/actions/dev.js index 1be898a12..3d9e34222 100644 --- a/cli/actions/dev.js +++ b/cli/actions/dev.js @@ -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);