module.exports = { lintOnSave: false, publicPath: './', // 配置打包之后的相对路径 devServer: { open: true, // 设置浏览器自动打开项目 port: 8080, // 开发服务器运行端口号 overlay: { warnings: false, errors: true }, proxy: { // 配置代理 '/api': { // target: 'http://doc.ii090.com/mock/267/', target: 'http://erp.staging.miaoxuan66.cn', changeOrigin: true, // 开启代理 pathRewrite: { // 重命名 '^/api': 'api' } } } } }