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