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 5
5
"scripts" : {
6
6
"serve" : " vue-cli-service serve" ,
7
7
"build" : " vue-cli-service build" ,
8
+ "build:preview" : " vue-cli-service build --mode preview" ,
8
9
"lint" : " vue-cli-service lint" ,
9
10
"lint:nofix" : " vue-cli-service lint --no-fix" ,
10
11
"test:unit" : " vue-cli-service test:unit" ,
21
22
"md5" : " ^2.2.1" ,
22
23
"moment" : " ^2.24.0" ,
23
24
"nprogress" : " ^0.2.0" ,
24
- "opencollective-postinstall" : " ^2.0.2" ,
25
25
"viser-vue" : " ^2.3.3" ,
26
26
"vue" : " ^2.5.22" ,
27
27
"vue-clipboard2" : " ^0.2.1" ,
28
28
"vue-cropper" : " 0.4.4" ,
29
29
"vue-ls" : " ^3.2.0" ,
30
30
"vue-router" : " ^3.0.1" ,
31
31
"vue-svg-component-runtime" : " ^1.0.1" ,
32
- "vuex" : " ^3.1.0" ,
33
- "opencollective" : " ^1.0.3"
32
+ "vuex" : " ^3.1.0"
34
33
},
35
34
"devDependencies" : {
36
35
"@babel/polyfill" : " ^7.2.5" ,
50
49
"less" : " ^3.8.1" ,
51
50
"less-loader" : " ^4.1.0" ,
52
51
"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"
54
55
},
55
56
"eslintConfig" : {
56
57
"root" : true ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export default {
23
23
autoHideHeader : false , // auto hide header
24
24
colorWeak : false ,
25
25
multiTab : false ,
26
- production : process . env . NODE_ENV === 'production' ,
26
+ production : process . env . NODE_ENV === 'production' && process . env . VUE_APP_PREVIEW !== 'true' ,
27
27
// vue-ls options
28
28
storageOptions : {
29
29
namespace : 'pro__' , // key prefix
You canβt perform that action at this time.
0 commit comments