mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-02-01 04:26: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 }) {
|
function getWatcher({ name, configFile, writeBundle }) {
|
||||||
return viteBuild({
|
return viteBuild({
|
||||||
|
// Fix form 'vite-main.config.ts' and 'vite-preload.config.ts'
|
||||||
|
mode: process.env.NODE_ENV,
|
||||||
// Options here precedence over configFile
|
// Options here precedence over configFile
|
||||||
build: {
|
build: {
|
||||||
watch: {},
|
watch: {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user