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);