vue.config.js 675 B

1234567891011121314151617181920212223242526272829303132
  1. const path = require('path')
  2. const baseUrl = '/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. '/api/': {
  20. target: 'http://localhost:18099'
  21. // target: 'https://jjzh.cc-lotus.info'
  22. },
  23. '/public/': {
  24. target: 'http://localhost:18099'
  25. },
  26. '/files/images/': {
  27. target: 'http://jjzh.cc-lotus.info'
  28. }
  29. }
  30. }
  31. }