const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true, publicPath:'./', lintOnSave:false, configureWebpack:{ experiments:{ topLevelAwait:true } }, devServer:{ //https:true, proxy: { '/addressapi': { target: 'https://cimweb.zjw.sh.cegn.cn:2008/', secure: false, changeOrigin: true, pathRewrite: { '^/addressapi': '' } }, '/api': { target: 'https://cimweb.zjw.sh.cegn.cn:2007/data-business-prod/', secure: false, changeOrigin: true, pathRewrite: { '^/api': '' } } }, }, // devServer:{ // proxy:{ // '/api': {//匹配所有以/阿皮开头的请求路径 // target: 'http://www.smi.sh.cegn.cn',//代理目标的基础路径 // pathRewrite: { // '^api': '' // 将代理服务器转发给服务器地址中的/api转换为空字符串 // }, // } // } // } })