vue.config.js 515 B

12345678910111213141516171819202122232425
  1. module.exports = {
  2. publicPath: process.env.VUE_APP_publicPath,
  3. configureWebpack: {
  4. devtool: process.env.devtool,
  5. externals: {
  6. BMap: "BMap"
  7. }
  8. },
  9. chainWebpack: config => {
  10. config.resolve.alias.set("@assets", "@/assets");
  11. },
  12. devServer: {
  13. open: true,
  14. proxy: {
  15. [process.env.VUE_APP_BASE_API]: {
  16. target: process.env.VUE_APP_Target,
  17. changeOrigin: true,
  18. pathRewrite: {
  19. ["^" + process.env.VUE_APP_BASE_API]: ""
  20. }
  21. }
  22. }
  23. }
  24. };