Commit 60f06237 authored by lvweichao's avatar lvweichao

update: vue config

parent 9b145799
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
"test": "sh ./bin/start.sh testing", "test": "sh ./bin/start.sh testing",
"prod": "sh ./bin/start.sh production", "prod": "sh ./bin/start.sh production",
"koa": "nodemon app.js", "koa": "nodemon app.js",
"web-dev": "cross-env NODE_ENV=development vue-cli-service serve", "web-dev": "NODE_ENV=development vue-cli-service serve",
"web-build": "cross-env NODE_ENV=production vue-cli-service build", "web-build": "NODE_ENV=production vue-cli-service build",
"test:unit": "vue-cli-service test:unit", "test:unit": "vue-cli-service test:unit",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
......
...@@ -5,7 +5,7 @@ const isDev = process.env.NODE_ENV === 'development'; ...@@ -5,7 +5,7 @@ const isDev = process.env.NODE_ENV === 'development';
module.exports = { module.exports = {
outputDir: isDev outputDir: isDev
? './dist' ? './dist'
: path.resolve('../../../www/dist/'), : path.resolve('./dist/'),
publicPath: isDev ? '/' : '/dist', publicPath: isDev ? '/' : '/dist',
configureWebpack: { configureWebpack: {
devServer: { 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