mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-10-12 17:12:12 +08:00
Update cli.ts
This commit is contained in:
parent
305beb5147
commit
3a5db7900f
@ -96,6 +96,10 @@ cli
|
||||
process.env.NO_SANDBOX = '1'
|
||||
}
|
||||
|
||||
if (options['--']) {
|
||||
process.env.ELECTRON_CLI_ARGS = JSON.stringify(options['--']);
|
||||
}
|
||||
|
||||
if (options.entry) {
|
||||
process.env.ELECTRON_ENTRY = options.entry
|
||||
}
|
||||
@ -150,6 +154,10 @@ cli
|
||||
process.env.ELECTRON_ENTRY = options.entry
|
||||
}
|
||||
|
||||
if (options['--']) {
|
||||
process.env.ELECTRON_CLI_ARGS = JSON.stringify(options['--']);
|
||||
}
|
||||
|
||||
try {
|
||||
await preview(inlineConfig, { skipBuild: options.skipBuild })
|
||||
} catch (e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user