Commit 60f06237 authored by lvweichao's avatar lvweichao

update: vue config

parent 9b145799
......@@ -8,8 +8,8 @@
"test": "sh ./bin/start.sh testing",
"prod": "sh ./bin/start.sh production",
"koa": "nodemon app.js",
"web-dev": "cross-env NODE_ENV=development vue-cli-service serve",
"web-build": "cross-env NODE_ENV=production vue-cli-service build",
"web-dev": "NODE_ENV=development vue-cli-service serve",
"web-build": "NODE_ENV=production vue-cli-service build",
"test:unit": "vue-cli-service test:unit",
"lint": "vue-cli-service lint"
},
......
......@@ -5,7 +5,7 @@ const isDev = process.env.NODE_ENV === 'development';
module.exports = {
outputDir: isDev
? './dist'
: path.resolve('../../../www/dist/'),
: path.resolve('./dist/'),
publicPath: isDev ? '/' : '/dist',
configureWebpack: {
devServer: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment