1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
| const path = require('path')
| const resolve = dir => {
| return path.join(__dirname, dir)
| }
| module.exports = {
| lintOnSave: false,
| publicPath: "./",
| chainWebpack: config => {
| config.resolve.alias
| .set('@', resolve('src'))
| .set('_c', resolve('src/components'))
| },
| devServer: {
| host: 'localhost', //target host
| port: 8080,
| proxy: {
| '/api': {
| // target: 'http://192.168.20.115:8543',
| target: 'http://192.168.20.53:8543',
| // target: 'http://1.1.2.2:8098',
| changeOrigin: true,
| pathRewrite: {
| '^/api': ''
| }
| }
| }
| }
| };
|
|