File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ import baseConfig from './vite.base.config'
66export default defineConfig ( mergeConfig ( baseConfig , {
77
88 define : {
9- 'process.env' : process . env ,
9+ 'process.env' : JSON . stringify ( {
10+ NODE_ENV : 'production' ,
11+ } ) ,
1012 } ,
1113 build : {
1214 emptyOutDir : false ,
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ export default defineConfig([{
1010 options . outExtension = { '.js' : '.js' }
1111 } ,
1212 define : {
13- 'process.env' : JSON . stringify ( process . env ) ,
13+ 'process.env' : JSON . stringify ( {
14+ NODE_ENV : 'production' ,
15+ } ) ,
1416 '__VUE_OPTIONS_API__' : 'true' ,
1517 '__VUE_PROD_DEVTOOLS__' : 'true' ,
1618 } ,
@@ -22,7 +24,9 @@ export default defineConfig([{
2224 'src/devtools-panel.ts' ,
2325 ] ,
2426 define : {
25- 'process.env' : JSON . stringify ( process . env ) ,
27+ 'process.env' : JSON . stringify ( {
28+ NODE_ENV : 'production' ,
29+ } ) ,
2630 '__VUE_OPTIONS_API__' : 'true' ,
2731 '__VUE_PROD_DEVTOOLS__' : 'true' ,
2832 } ,
You can’t perform that action at this time.
0 commit comments