mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-04-06 04:05:44 +08:00
fix: can not get import meta env variables in renderer #10
This commit is contained in:
parent
839a1801a3
commit
71dc5fd18b
@ -238,6 +238,8 @@ export function electronRendererVitePlugin(options?: ElectronPluginOptions): Plu
|
||||
|
||||
const buildConfig = mergeConfig(defaultConfig.build, config.build || {})
|
||||
config.build = buildConfig
|
||||
|
||||
config.envDir = config.envDir || path.resolve(root)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user