Skip to content

Commit 1fafcef

Browse files
committed
Fixed prod build setup.
1 parent 02c81f7 commit 1fafcef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"dev": "vue-cli-service serve",
77
"build": "vue-cli-service build",
8-
"gh:publish": "yarn run build && gh-pages -d dist"
8+
"gh:publish": "NODE_ENV=production yarn run build && gh-pages -d dist"
99
},
1010
"dependencies": {
1111
"node-forge": "^0.10.0",

demo/vue.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
22
lintOnSave: false,
33
productionSourceMap: false,
4+
publicPath: process.env.NODE_ENV === 'production' ? '/vue-beautiful-chat/' : '/',
45
}

0 commit comments

Comments
 (0)