vue.config.js 1.7 KB

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