module.exports = { // publicPath: './', // 默认'/',部署应用包时的基本 URL publicPath: '/sunanWebsite/', outputDir: 'dist', // 'dist', 生产环境构建文件的目录 lintOnSave: false, devServer: { open: 'true', host: '0.0.0.0', port: '9529', https: false, hotOnly: false, //proxy:'http://120.27.2.251:8084' proxy: { '/industryParkApi': { target: 'https://www.idea-sf.com/industryParkApi/', // target: 'http://localhost:9001/', // target: 'http://134.175.95.41:9001/', ws: true, changeOrigin: true, pathRewrite: { '^/industryParkApi': '' // 请求的时候使用这个server就可以 } } }, } }