|
@ -89,6 +89,7 @@ function runElectron() { |
|
|
console.log('[electron]', chalk.green(`electron ready.`)) |
|
|
console.log('[electron]', chalk.green(`electron ready.`)) |
|
|
child.on("close", () => { |
|
|
child.on("close", () => { |
|
|
if (!manualRestart) { |
|
|
if (!manualRestart) { |
|
|
|
|
|
// https://juejin.cn/post/6844904071682326535
|
|
|
vitePorcess.kill() |
|
|
vitePorcess.kill() |
|
|
child.kill() |
|
|
child.kill() |
|
|
process.exit() |
|
|
process.exit() |
|
|