module.exports = {
  baseUrl: './',
  // 生产环境是否生成 sourceMap 文件
  productionSourceMap: true,
  chainWebpack: config => config.plugins.delete('named-chunks'),
  devServer: {
    proxy: {
      '/api': {
        target: 'http://wechatconfigdev.ycjcjy.com',
        // target: 'http://192.168.0.62:8080', // wf
        // target: 'http://192.168.0.102:8080', // hyq
        // target: 'http://192.168.0.11', // zys
        // target: 'http://dev.ycjcjy.com', // frp
        changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
        // pathRewrite: {
        //   '^/api': '/api-v2/api'
        // },
      },
    },
    // compress: true,
    disableHostCheck: true,   // That solved it
  }
}