vue.config.js 1017 B

1234567891011121314151617181920212223242526272829303132
  1. const path = require('path');
  2. // const proxy_path = 'http://192.168.2.241:80';
  3. // const proxy_path = 'http://192.168.2.236:88';
  4. const proxy_path = 'http://192.168.2.236:6060';
  5. // const proxy_path = 'http://192.168.3.101: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. };