vue.config.js 1008 B

123456789101112131415161718192021222324252627282930313233343536
  1. const path = require('path');
  2. <<<<<<< HEAD
  3. // const proxy_path = 'http://192.168.2.236:80';
  4. =======
  5. // const proxy_path = 'http://192.168.2.236:5050';
  6. >>>>>>> DZBLFAPZEDIT
  7. const proxy_path = 'http://192.168.2.241:88';
  8. // const proxy_path = 'http://192.168.2.236:88';
  9. // const proxy_path = 'http://192.168.3.101:5050';
  10. // const proxy_path = 'http://192.168.3.117:5050';//周铁刚
  11. // const proxy_path = 'http://192.168.3.113:5050'; //王峰
  12. module.exports = {
  13. lintOnSave: false,
  14. devServer: {
  15. historyApiFallback: true,
  16. disableHostCheck: true,
  17. proxy: {
  18. '/api': {
  19. target: proxy_path,
  20. changeOrigin: true,
  21. secure: false,
  22. },
  23. },
  24. },
  25. configureWebpack: {
  26. resolve: {
  27. alias: {
  28. '@components': path.resolve(__dirname, './src/components/'),
  29. '@less': path.resolve(__dirname, './src/less/'),
  30. '@base': path.resolve(__dirname, './src/components/base/'),
  31. '@api': path.resolve(__dirname, './src/api/'),
  32. },
  33. },
  34. },
  35. };