lishifeng
2020-08-25 e076f58966a47e5346e29d77faa5e0a7eebc421d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
    publicPath: './',
    configureWebpack: config=> {
        config.externals = {
           BMapGL : "BMapGL"
        }
    },
    devServer: {
        // host: 'localhost',
        port: 8080, 
        open: true,   //  自动打开浏览器
        proxy: {
          '/yckj': {
           /*  target: 'http://192.168.10.222:8080/', */  // 正式环境 (公司电脑服务器)  服务器接口域名
           target:'http://localhost:8919/',     /* 本机开启的服务器 */
            changeOrigin: true,  //是否跨域
            pathRewrite: {
              '^/yckj': ''  /* 本地域名 */
            }
          }
        }
      }
}