File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ import baseConfig from './vite.base.config'
6
6
export default defineConfig ( mergeConfig ( baseConfig , {
7
7
8
8
define : {
9
- 'process.env' : process . env ,
9
+ 'process.env' : JSON . stringify ( {
10
+ NODE_ENV : 'production' ,
11
+ } ) ,
10
12
} ,
11
13
build : {
12
14
emptyOutDir : false ,
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ export default defineConfig([{
10
10
options . outExtension = { '.js' : '.js' }
11
11
} ,
12
12
define : {
13
- 'process.env' : JSON . stringify ( process . env ) ,
13
+ 'process.env' : JSON . stringify ( {
14
+ NODE_ENV : 'production' ,
15
+ } ) ,
14
16
'__VUE_OPTIONS_API__' : 'true' ,
15
17
'__VUE_PROD_DEVTOOLS__' : 'true' ,
16
18
} ,
@@ -22,7 +24,9 @@ export default defineConfig([{
22
24
'src/devtools-panel.ts' ,
23
25
] ,
24
26
define : {
25
- 'process.env' : JSON . stringify ( process . env ) ,
27
+ 'process.env' : JSON . stringify ( {
28
+ NODE_ENV : 'production' ,
29
+ } ) ,
26
30
'__VUE_OPTIONS_API__' : 'true' ,
27
31
'__VUE_PROD_DEVTOOLS__' : 'true' ,
28
32
} ,
You can’t perform that action at this time.
0 commit comments