Pass arguments to code-server during watch
This commit is contained in:
parent
6e809b6a31
commit
a149c5fc60
@ -330,7 +330,7 @@ class Builder {
|
|||||||
if (server) {
|
if (server) {
|
||||||
server.kill()
|
server.kill()
|
||||||
}
|
}
|
||||||
const s = cp.fork(path.join(this.rootPath, "out/node/entry.js"))
|
const s = cp.fork(path.join(this.rootPath, "out/node/entry.js"), process.argv.slice(2))
|
||||||
console.log(`[server] spawned process ${s.pid}`)
|
console.log(`[server] spawned process ${s.pid}`)
|
||||||
s.on("exit", () => console.log(`[server] process ${s.pid} exited`))
|
s.on("exit", () => console.log(`[server] process ${s.pid} exited`))
|
||||||
server = s
|
server = s
|
||||||
|
Reference in New Issue
Block a user