|
@@ -1,8 +1,14 @@
|
|
|
const path = require('path');
|
|
|
const common = path.resolve(__dirname, '../common');
|
|
|
module.exports = {
|
|
|
+ // 输出文件
|
|
|
publicPath: `/${process.env.VUE_APP_ROUTER}`,
|
|
|
+ // 打包文件
|
|
|
outputDir: `${process.env.VUE_APP_ROUTER}`,
|
|
|
+ // 静态资源
|
|
|
+ assetsDir: 'static',
|
|
|
+ lintOnSave: process.env.NODE_ENV === 'development',
|
|
|
+ // 问题定位
|
|
|
productionSourceMap: false,
|
|
|
configureWebpack: (config) => {
|
|
|
Object.assign(config, {
|
|
@@ -20,10 +26,10 @@ module.exports = {
|
|
|
port: '8001',
|
|
|
proxy: {
|
|
|
'/files': {
|
|
|
- target: 'http://123.57.16.142',
|
|
|
+ target: process.env.VUE_APP_REQUEST_URL,
|
|
|
},
|
|
|
'/projectadmin/api': {
|
|
|
- target: 'http://123.57.16.142',
|
|
|
+ target: process.env.VUE_APP_REQUEST_URL,
|
|
|
changeOrigin: true,
|
|
|
ws: false,
|
|
|
},
|