vue.config.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. const proxy = {
  2. "/api/ecs_core": {
  3. target: process.env.VUE_APP_CORE_HOST_URL || "http://192.168.10.39:8000",
  4. changeOrigin: true
  5. },
  6. "/api/ecs_exam_work": {
  7. target:
  8. process.env.VUE_APP_EXAM_WORK_HOST_URL || "http://192.168.10.39:8001",
  9. changeOrigin: true
  10. },
  11. "/api/ecs_ques": {
  12. target:
  13. process.env.VUE_APP_QUESTIONS_HOST_URL || "http://192.168.10.39:8008",
  14. changeOrigin: true
  15. },
  16. "/api/ecs_oe_admin": {
  17. target: process.env.VUE_APP_OE_HOST_URL || "http://192.168.10.39:8013",
  18. changeOrigin: true
  19. },
  20. "/api/ecs_marking": {
  21. target: process.env.VUE_APP_MARKING_HOST_URL || "http://192.168.10.39:8004",
  22. changeOrigin: true
  23. },
  24. "/api/ecs_data_process": {
  25. target:
  26. process.env.VUE_APP_DATA_PROCESS_HOST_URL || "http://192.168.10.39:8005",
  27. changeOrigin: true
  28. },
  29. "/api/ecs_prt": {
  30. target: process.env.VUE_APP_PRINT_HOST_URL || "http://192.168.10.39:8009",
  31. changeOrigin: true
  32. }
  33. };
  34. var webpack = require("webpack");
  35. module.exports = {
  36. devServer: {
  37. proxy
  38. },
  39. configureWebpack: {
  40. plugins: [
  41. // Ignore all locale files of moment.js
  42. new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)
  43. ]
  44. },
  45. transpileDependencies: [/\bvue-awesome\b/]
  46. };