diff --git a/src/cli/dev.ts b/src/cli/dev.ts index eef7fb1db..5d2d04554 100644 --- a/src/cli/dev.ts +++ b/src/cli/dev.ts @@ -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()