vue.config.js 772 B

123456789101112131415161718192021222324252627282930
  1. module.exports = {
  2. devServer: {
  3. // 关闭esline
  4. overlay: {
  5. warnings: false,
  6. errors: false
  7. },
  8. proxy: {
  9. "/wanda": {
  10. target: "http://map.wanda.cn/editor/fmap/1001724_29",
  11. changeOrigin: true,
  12. pathRewrite: {
  13. "^/wanda": ""
  14. }
  15. }
  16. }
  17. },
  18. chainWebpack: (config) => {
  19. const svgRule = config.module.rule('svg');
  20. svgRule.uses.clear();
  21. svgRule
  22. .use('babel-loader')
  23. .loader('babel-loader')
  24. .end()
  25. .use('vue-svg-loader')
  26. .loader('vue-svg-loader');
  27. },
  28. lintOnSave: false,
  29. // publicPath: '/dist',
  30. }