vue.config.js 396 B

12345678910111213141516171819202122
  1. const { defineConfig } = require('@vue/cli-service')
  2. module.exports = defineConfig({
  3. transpileDependencies: true,
  4. lintOnSave:false,
  5. configureWebpack: {
  6. externals: {
  7. AMap: 'AMap',
  8. }
  9. },
  10. devServer: {
  11. proxy: {
  12. '/api': {
  13. target: 'http://localhost:6666',
  14. changeOrigin: true,
  15. pathRewrite: {
  16. '^/api': ''
  17. }
  18. }
  19. }
  20. }
  21. })