vue.config.js 947 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. const path = require('path')
  2. const baseUrl = '/yl-admin'
  3. const frameSrc = path.resolve(__dirname)
  4. module.exports = {
  5. publicPath: baseUrl,
  6. productionSourceMap: false,
  7. configureWebpack: {
  8. resolve: {
  9. alias: {
  10. '@frame': frameSrc,
  11. '@naf': path.join(frameSrc, '/naf'),
  12. '@lib': path.join(frameSrc, '/lib')
  13. }
  14. }
  15. },
  16. devServer: {
  17. port: 4000,
  18. proxy: {
  19. '/ws': {
  20. target: 'http://192.168.0.45:15674'
  21. // target: 'http://192.168.4.1:7001'
  22. },
  23. '/api/': {
  24. // target: 'http://192.168.0.81:8001'
  25. // target: 'http://127.0.0.1:9001'
  26. target: 'http://medical.cc-lotus.info/'
  27. },
  28. '/naf/': {
  29. target: 'http://medical.cc-lotus.info/'
  30. // target: 'http://127.0.0.1:9002'
  31. },
  32. // 上传路径
  33. '/filesPath/': {
  34. target: 'http://localhost:18070'
  35. // target: 'http://192.168.4.1:7001'
  36. }
  37. }
  38. }
  39. }