(child)
| 271 | } |
| 272 | |
| 273 | function killProcess(child) { |
| 274 | if (child.exitCode !== null || child.signalCode !== null) return |
| 275 | if (!child.pid) return |
| 276 | |
| 277 | if (process.platform === 'win32') { |
| 278 | spawn('taskkill', ['/pid', String(child.pid), '/t', '/f'], { |
| 279 | stdio: 'ignore', |
| 280 | }) |
| 281 | return |
| 282 | } |
| 283 | |
| 284 | child.kill('SIGTERM') |
| 285 | } |
| 286 | |
| 287 | function startDev() { |
| 288 | loadEnvFileIntoEnv() |