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…
Reference in a new issue