Skip to content

Commit

Permalink
fix: production remove setting menu
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Mar 25, 2019
1 parent cfc3bbc commit 692f0f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NODE_ENV=production
VUE_APP_PREVIEW=false
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"build:preview": "vue-cli-service build --mode preview",
"lint": "vue-cli-service lint",
"lint:nofix": "vue-cli-service lint --no-fix",
"test:unit": "vue-cli-service test:unit",
Expand All @@ -21,16 +22,14 @@
"md5": "^2.2.1",
"moment": "^2.24.0",
"nprogress": "^0.2.0",
"opencollective-postinstall": "^2.0.2",
"viser-vue": "^2.3.3",
"vue": "^2.5.22",
"vue-clipboard2": "^0.2.1",
"vue-cropper": "0.4.4",
"vue-ls": "^3.2.0",
"vue-router": "^3.0.1",
"vue-svg-component-runtime": "^1.0.1",
"vuex": "^3.1.0",
"opencollective": "^1.0.3"
"vuex": "^3.1.0"
},
"devDependencies": {
"@babel/polyfill": "^7.2.5",
Expand All @@ -50,7 +49,9 @@
"less": "^3.8.1",
"less-loader": "^4.1.0",
"vue-svg-icon-loader": "^2.1.1",
"vue-template-compiler": "^2.5.22"
"vue-template-compiler": "^2.5.22",
"opencollective": "^1.0.3",
"opencollective-postinstall": "^2.0.2"
},
"eslintConfig": {
"root": true,
Expand Down
2 changes: 1 addition & 1 deletion src/config/defaultSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
autoHideHeader: false, // auto hide header
colorWeak: false,
multiTab: false,
production: process.env.NODE_ENV === 'production',
production: process.env.NODE_ENV === 'production' && process.env.VUE_APP_PREVIEW !== 'true',
// vue-ls options
storageOptions: {
namespace: 'pro__', // key prefix
Expand Down

0 comments on commit 692f0f8

Please sign in to comment.