vue.config.js 925 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. const baseUrl = '/yl-web'
  2. const path = require('path')
  3. const frameSrc = path.resolve(__dirname)
  4. module.exports = {
  5. publicPath: baseUrl,
  6. productionSourceMap: false,
  7. configureWebpack: {
  8. resolve: {
  9. alias: {
  10. '@lib': path.join(frameSrc, '/lib')
  11. }
  12. }
  13. },
  14. devServer: {
  15. port: 3000,
  16. proxy: {
  17. '/api/': {
  18. target: 'http://192.168.0.81:8001'
  19. // target: 'http://medical.cc-lotus.info'
  20. },
  21. '/tyylfiles/': {
  22. target: 'http://localhost:8009',
  23. pathRewrite: { '^/tyylfiles/': '/tyyl/' }
  24. // target: 'http://192.168.4.1:7001'
  25. },
  26. '/files/tyyl/': {
  27. target: 'http://localhost:8006'
  28. },
  29. '/auth': {
  30. target: 'http://wx.cc-lotus.info',
  31. pathRewrite: { '^/auth': '/api/auth' }
  32. },
  33. '/naf/': {
  34. target: 'http://localhost:8002'
  35. // target: 'http://192.168.4.1:7001'
  36. }
  37. }
  38. }
  39. }