const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ transpileDependencies: true, publicPath: './', lintOnSave: true, productionSourceMap: false, devServer: { port: 8080, proxy: { '/api': { target: 'https://lcrm3api.lunz.cn', changeOrigin: true, ws: true, // pathRewrite: { // '^/api': '' // } }, '/gatewayapi': { target: 'https://gatewayapi.lunz.cn/api', changeOrigin: true, ws: true, pathRewrite: { '^/gatewayapi': '' } }, '/weather': { target: 'https://api.map.baidu.com', changeOrigin: true, ws: true, }, } } });