| | |
| | | * In most cases please use '/' !!! |
| | | * Detail: https://cli.vuejs.org/config/#publicpath |
| | | */ |
| | | publicPath: '/', |
| | | publicPath: './', |
| | | outputDir: 'dist', |
| | | assetsDir: 'static', |
| | | lintOnSave: process.env.NODE_ENV === 'development', |
| | |
| | | warnings: false, |
| | | errors: true |
| | | }, |
| | | before: require('./mock/mock-server.js') |
| | | proxy: { |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | target: process.env.VUE_APP_BASE_API, // 请求的第三⽅接⼝地址 |
| | | changeOrigin: true, // 请求跨域时,需配置此项 |
| | | pathRewrite: { // 路径重写,替换target中的请求地址 |
| | | ['^' + process.env.VUE_APP_BASE_API]: '' |
| | | } |
| | | } |
| | | } |
| | | // before: require('./mock/mock-server.js') |
| | | }, |
| | | configureWebpack: { |
| | | // provide the app's title in webpack's name field, so that |