mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-04-06 04:05:44 +08:00
use config.base also in production
This commit is contained in:
parent
f42a9d370f
commit
f33f67c147
@ -335,8 +335,7 @@ export function electronRendererVitePlugin(options?: ElectronPluginOptions): Plu
|
||||
config(config): void {
|
||||
const root = options?.root || process.cwd()
|
||||
|
||||
config.base =
|
||||
config.mode === 'production' || process.env.NODE_ENV_ELECTRON_VITE === 'production' ? './' : config.base
|
||||
config.base = config.base ?? './'
|
||||
config.root = config.root || './src/renderer'
|
||||
|
||||
const chromeTarget = getElectronChromeTarget()
|
||||
|
Loading…
x
Reference in New Issue
Block a user