vue.config.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. module.exports = {
  2. publicPath: "/entpc",
  3. productionSourceMap: false,
  4. lintOnSave: false,
  5. css:{
  6. loaderOptions:{
  7. sass: {
  8. prependData: `@import "@/style/global_variable.scss";`// 全局引入
  9. },
  10. }
  11. },
  12. devServer: {
  13. open: true,
  14. port: "8086",
  15. hot: true,
  16. disableHostCheck: true,
  17. proxy: {
  18. "^/entniche": {
  19. // target: "http://ent-xzh.jianyu360.cn",
  20. // target: "https://app2-jytest.jianyu360.cn",
  21. // target: "http://192.168.20.241:813",
  22. target: "http://127.0.0.1:812",
  23. // target:'http://192.168.20.51:815/entbase',
  24. // target:'http://192.168.20.51:813/entdataexport',
  25. // target:'http://192.168.20.241:813',
  26. changeOrigin: true,
  27. ws: true,
  28. pathRewrite: {
  29. "^/entniche": "/entniche"
  30. }
  31. },
  32. "^/entbase": {
  33. // target: "http://ent-xzh.jianyu360.cn",
  34. // target: "https://app2-jytest.jianyu360.cn",
  35. // target: "http://192.168.20.241:813/entniche",
  36. target: "http://127.0.0.1:812",
  37. // target:'http://192.168.20.51:815/entbase',
  38. // target:'http://192.168.20.51:813/entdataexport',
  39. // target:'http://192.168.20.241:812',
  40. changeOrigin: true
  41. },
  42. "^/entdataexport": {
  43. // target: "http://ent-xzh.jianyu360.cn",
  44. // target: "https://app2-jytest.jianyu360.cn",
  45. // target: "http://192.168.20.241:813/entniche",
  46. target: "http://127.0.0.1:813",
  47. // target:'http://192.168.20.51:815/entbase',
  48. // target:'http://192.168.20.51:813/entdataexport',
  49. // target:'http://192.168.20.241:812',
  50. changeOrigin: true
  51. },
  52. }
  53. }
  54. }