vue.config.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. module.exports = {
  2. devServer: {
  3. proxy: {
  4. "/data": {
  5. target: "http://192.168.200.87:9003",
  6. changeOrigin: true,
  7. secure: false,
  8. pathRewrite: {
  9. "^/data": "",
  10. },
  11. },
  12. '/wdfn': {
  13. target: 'http://map.wanda.cn',
  14. changeOrigin: true,
  15. pathRewrite: {
  16. '^/wdfn': '/editor/fmap',
  17. },
  18. },
  19. "/serve": {
  20. target: "http://192.168.200.87:8088",
  21. changeOrigin: true,
  22. pathRewrite: {
  23. "^/serve": "",
  24. },
  25. },
  26. },
  27. // 关闭esline
  28. overlay: {
  29. warnings: false,
  30. errors: false,
  31. },
  32. },
  33. chainWebpack: (config) => {
  34. const svgRule = config.module.rule("svg")
  35. svgRule.uses.clear()
  36. svgRule
  37. .use("babel-loader")
  38. .loader("babel-loader")
  39. .end()
  40. .use("vue-svg-loader")
  41. .loader("vue-svg-loader")
  42. },
  43. lintOnSave: false,
  44. publicPath: "/wandaBmGuide",
  45. // 打包名称
  46. outputDir: 'wandaBmGuide',
  47. // 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录
  48. assetsDir: 'static',
  49. }