mirror of
https://github.com/LukeHagar/electron-vite.git
synced 2025-12-06 04:19:43 +00:00
fix: NODE_ENV is incorrect in vite 4.x
This commit is contained in:
@@ -98,9 +98,7 @@ export async function resolveConfig(
|
||||
|
||||
config.mode = mode
|
||||
|
||||
if (mode === 'production') {
|
||||
process.env.NODE_ENV = 'production'
|
||||
}
|
||||
process.env.NODE_ENV = defaultMode
|
||||
|
||||
let userConfig: UserConfig | undefined
|
||||
let configFileDependencies: string[] = []
|
||||
|
||||
Reference in New Issue
Block a user