mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-10-12 17:12:12 +08:00
add ELECTRON_CLI_ARGS
This commit is contained in:
parent
8e1f9f6845
commit
305beb5147
@ -122,7 +122,7 @@ export function startElectron(root: string | undefined): ChildProcess {
|
||||
|
||||
const isDev = process.env.NODE_ENV_ELECTRON_VITE === 'development'
|
||||
|
||||
const args: string[] = []
|
||||
const args: string[] = process.env.PASSED_ARGS ? JSON.parse(process.env.ELECTRON_CLI_ARGS) : []
|
||||
|
||||
if (!!process.env.REMOTE_DEBUGGING_PORT && isDev) {
|
||||
args.push(`--remote-debugging-port=${process.env.REMOTE_DEBUGGING_PORT}`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user