vue.config.js 793 B

12345678910111213141516171819202122232425262728293031323334
  1. const path = require('path');
  2. const frameSrc = path.resolve(__dirname);
  3. const baseUrl = '/admin/';
  4. module.exports = {
  5. publicPath: baseUrl,
  6. outputDir: path.join(frameSrc, '../../admin-web'),
  7. productionSourceMap: false,
  8. configureWebpack: {
  9. resolve: {
  10. alias: {
  11. '@components': path.join(frameSrc, '/src/components'),
  12. '@style': path.join(frameSrc, '/style'),
  13. '@lib': path.join(frameSrc, '/lib'),
  14. '@mock': path.join(frameSrc, '/mock')
  15. }
  16. }
  17. },
  18. devServer: {
  19. port: 3000,
  20. proxy: {
  21. '/api/': {
  22. target: 'http://192.168.3.45:18090'
  23. // target: 'http://192.168.0.45:18090'
  24. },
  25. '/upload/': {
  26. target: 'http://192.168.3.45:9002'
  27. // target: 'http://192.168.0.45:18090'
  28. }
  29. }
  30. }
  31. };