vue.config.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. "/entbase": {
  19. // target: "https://app2-jytest.jianyu360.cn",
  20. // target: "http://127.0.0.1:812",
  21. // target: "http://127.0.0.1:812",
  22. target:'http://192.168.20.214:815',//任
  23. // target:'http://192.168.20.241:815',
  24. changeOrigin: true,
  25. ws: true,
  26. pathRewrite: {
  27. "^/entbase": "/entbase"
  28. }
  29. },
  30. "/entniche": {
  31. // target: "https://app2-jytest.jianyu360.cn",
  32. // target: "http://192.168.20.241:812",
  33. // target: "http://127.0.0.1:812",
  34. target:'http://192.168.20.214:812',//任
  35. changeOrigin: true,
  36. ws: true,
  37. pathRewrite: {
  38. "^/entniche": "/entniche"
  39. }
  40. },
  41. "^/entdataexport": {
  42. // target: "http://ent-xzh.jianyu360.cn",
  43. // target: "https://app2-jytest.jianyu360.cn",
  44. // target: "http://192.168.20.241:813/entniche",
  45. // target: "http://127.0.0.1:813",
  46. // target:'http://192.168.20.51:815/entbase',
  47. // target:'http://192.168.20.51:813/entdataexport',
  48. target:'http://192.168.20.241:813',
  49. // target:'http://192.168.20.241:812',
  50. changeOrigin: true,
  51. ws: true,
  52. pathRewrite: {
  53. "^/entdataexport": "/entdataexport"
  54. }
  55. },
  56. }
  57. }
  58. }