vue.config.js 917 B

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