File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1+ NODE_ENV = production
2+ VUE_APP_PREVIEW = false
Original file line number Diff line number Diff line change 55 "scripts" : {
66 "serve" : " vue-cli-service serve" ,
77 "build" : " vue-cli-service build" ,
8+ "build:preview" : " vue-cli-service build --mode preview" ,
89 "lint" : " vue-cli-service lint" ,
910 "lint:nofix" : " vue-cli-service lint --no-fix" ,
1011 "test:unit" : " vue-cli-service test:unit" ,
2122 "md5" : " ^2.2.1" ,
2223 "moment" : " ^2.24.0" ,
2324 "nprogress" : " ^0.2.0" ,
24- "opencollective-postinstall" : " ^2.0.2" ,
2525 "viser-vue" : " ^2.3.3" ,
2626 "vue" : " ^2.5.22" ,
2727 "vue-clipboard2" : " ^0.2.1" ,
2828 "vue-cropper" : " 0.4.4" ,
2929 "vue-ls" : " ^3.2.0" ,
3030 "vue-router" : " ^3.0.1" ,
3131 "vue-svg-component-runtime" : " ^1.0.1" ,
32- "vuex" : " ^3.1.0" ,
33- "opencollective" : " ^1.0.3"
32+ "vuex" : " ^3.1.0"
3433 },
3534 "devDependencies" : {
3635 "@babel/polyfill" : " ^7.2.5" ,
5049 "less" : " ^3.8.1" ,
5150 "less-loader" : " ^4.1.0" ,
5251 "vue-svg-icon-loader" : " ^2.1.1" ,
53- "vue-template-compiler" : " ^2.5.22"
52+ "vue-template-compiler" : " ^2.5.22" ,
53+ "opencollective" : " ^1.0.3" ,
54+ "opencollective-postinstall" : " ^2.0.2"
5455 },
5556 "eslintConfig" : {
5657 "root" : true ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export default {
2323 autoHideHeader : false , // auto hide header
2424 colorWeak : false ,
2525 multiTab : false ,
26- production : process . env . NODE_ENV === 'production' ,
26+ production : process . env . NODE_ENV === 'production' && process . env . VUE_APP_PREVIEW !== 'true' ,
2727 // vue-ls options
2828 storageOptions : {
2929 namespace : 'pro__' , // key prefix
You canβt perform that action at this time.
0 commit comments