Merge pull request #182 from sveltejs/gh-177

kill child process if webpack crashes
This commit is contained in:
Rich Harris
2018-03-10 08:51:05 -05:00
committed by GitHub

View File

@@ -97,6 +97,11 @@ export default async function dev(port: number) {
let proc: child_process.ChildProcess;
process.on('exit', () => {
// sometimes webpack crashes, so we need to kill our children
if (proc) proc.kill();
});
const deferreds = {
server: deferred(),
client: deferred()