// vue.config.js module.exports = { // 选项 // baseUrl 从 Vue CLI 3.3 起已弃用 // 部署应用包时的基本 URL publicPath: '', // 当运行 vue-cli-service build 时生成的生产环境构建文件的目录,默认是dist outputDir: 'dist', // 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录。 assetsDir: '', // 配置url代理 可配置多个 devServer: { proxy: { '/': { // ws: true, target: 'http://xxxxx', changeOrigin: true, }, // 'api': { // ws: false, // target: 'http://xxxxx', // changeOrigin: true, // } } } }