Commit 4d64c8c5 by liangjianmin

css

parent 152e3620
Showing with 25 additions and 4 deletions
const env = process.env.NODE_ENV;
console.log(env)
const url = 'http://cloud.liexindev.net';
switch (env) {
case 'development':
//开发环境
......@@ -21,6 +21,27 @@ module.exports = {
publicPath: NODE_ENV,
lintOnSave: false,//关闭eslint
outputDir: 'view',
productionSourceMap: false
productionSourceMap: false,
devServer: {
disableHostCheck: true,
port: 8080,
proxy: {
'/auth': {
target: url,
ws: true,
changeOrigin: true,
pathRewrite: {
'^/auth': '/auth'
}
},
'/api': {
target: url,
ws: true,
changeOrigin: true,
pathRewrite: {
'^/api': '/api'
}
},
}
}
}
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 sign in to comment