
module.exports = {
    outputDir:"yos",
    lintOnSave: false,
    productionSourceMap:false,
    publicPath: './',
    devServer: {
      headers: {
        'Access-Control-Allow-Origin': '*',
      },
      open: true,
      // host: '192.168.4.170',
      host: 'localhost',
      port: 8000,
      proxy: {
        '/apis': {
          // target: 'http://61.164.207.46:8000',  // target host*/
          /*target: 'http://192.168.3.9:8080',  // target host*!/*/
          target: 'https://oms.idcgroup.com.cn:8079/',  // target host
          // target: 'localhost:8080',  // target host
          ws: true,  // proxy websockets 
          changeOrigin: true,  // needed for virtual hosted sites
          pathRewrite: {
            '^/apis': ''  // rewrite path
          },
        },
      }
    }
}
