vue.config.js 492 B

12345678910111213141516171819202122232425
  1. module.exports = {
  2. publicPath: '/www',
  3. productionSourceMap: false,
  4. devServer: {
  5. port: 18080,
  6. proxy: {
  7. '/api/': {
  8. target: 'http://skl.cc-lotus.info'
  9. // target: 'http://127.0.0.1:18090'
  10. },
  11. '/upload/': {
  12. // target: 'http://127.0.0.1:9002'
  13. target: 'http://skl.cc-lotus.info'
  14. }
  15. }
  16. },
  17. configureWebpack: {
  18. resolve: {
  19. alias: {
  20. '@components': '/src/components',
  21. '@lib': '/lib'
  22. }
  23. }
  24. }
  25. };