mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-04-06 04:05:44 +08:00
fix: NODE_ENV is incorrect in vite 4.x
This commit is contained in:
parent
6676f60aae
commit
d086e0d51a
@ -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[] = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user