mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
fix: correct process.env.NODE_ENV
This commit is contained in:
parent
9d09dc0664
commit
76660bbd6c
@ -16,6 +16,8 @@ const pkg = JSON.parse(readFileSync(join(process.cwd(), 'package.json'), 'utf8')
|
||||
*/
|
||||
function getWatcher({ name, configFile, writeBundle }) {
|
||||
return viteBuild({
|
||||
// Fix form 'vite-main.config.ts' and 'vite-preload.config.ts'
|
||||
mode: process.env.NODE_ENV,
|
||||
// Options here precedence over configFile
|
||||
build: {
|
||||
watch: {},
|
||||
|
Loading…
x
Reference in New Issue
Block a user