Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,13 @@ async function _startSubprocess(devProxy: DevProxy, rawArgs: string[]) {
}

const restart = async () => {
// Kill previous process with restart signal
kill('SIGHUP')
// Kill previous process with restart signal (not supported on Windows)
if (process.platform === 'win32') {
kill('SIGTERM')
}
else {
kill('SIGHUP')
}
// Start new process
childProc = fork(globalThis.__nuxt_cli__!.entry!, ['_dev', ...rawArgs], {
execArgv: [
Expand Down
Loading