|
@@ -1,32 +1,29 @@
|
|
|
module.exports = {
|
|
|
devServer: {
|
|
|
proxy: {
|
|
|
- '/api': {
|
|
|
- target: 'http://192.168.200.87:9003',
|
|
|
+ "/api": {
|
|
|
+ target: "http://192.168.200.87:9003",
|
|
|
changeOrigin: true,
|
|
|
secure: false,
|
|
|
pathRewrite: {
|
|
|
- '^/api': '',
|
|
|
+ "^/api": "",
|
|
|
},
|
|
|
},
|
|
|
- '/wanda': {
|
|
|
- target: 'http://map.wanda.cn/editor/fmap/1001724_29',
|
|
|
+ "/wanda": {
|
|
|
+ target: "http://map.wanda.cn/editor/fmap/1001724_29",
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
- '^/wanda': '',
|
|
|
+ "^/wanda": "",
|
|
|
},
|
|
|
},
|
|
|
- '/serve': {
|
|
|
- target: 'http://192.168.200.87:8088/topology-wanda',
|
|
|
+ "/serve": {
|
|
|
+ target: "http://192.168.200.87:8088/topology-wanda",
|
|
|
changeOrigin: true,
|
|
|
secure: false,
|
|
|
pathRewrite: {
|
|
|
- '^/serve': '',
|
|
|
+ "^/serve": "",
|
|
|
},
|
|
|
},
|
|
|
- // host: '192.168.200.82',
|
|
|
- host: 'localhost',
|
|
|
- port: 8080,
|
|
|
},
|
|
|
// 关闭esline
|
|
|
overlay: {
|
|
@@ -35,15 +32,15 @@ module.exports = {
|
|
|
},
|
|
|
},
|
|
|
chainWebpack: (config) => {
|
|
|
- const svgRule = config.module.rule('svg')
|
|
|
+ const svgRule = config.module.rule("svg")
|
|
|
svgRule.uses.clear()
|
|
|
svgRule
|
|
|
- .use('babel-loader')
|
|
|
- .loader('babel-loader')
|
|
|
+ .use("babel-loader")
|
|
|
+ .loader("babel-loader")
|
|
|
.end()
|
|
|
- .use('vue-svg-loader')
|
|
|
- .loader('vue-svg-loader')
|
|
|
+ .use("vue-svg-loader")
|
|
|
+ .loader("vue-svg-loader")
|
|
|
},
|
|
|
lintOnSave: false,
|
|
|
- publicPath: '/dist',
|
|
|
+ publicPath: "/dist",
|
|
|
}
|