vue.config.js 853 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. // publicPath: './', // 默认'/',部署应用包时的基本 URL
  3. publicPath: '/sunanWebsite/',
  4. outputDir: 'dist', // 'dist', 生产环境构建文件的目录
  5. lintOnSave: false,
  6. devServer: {
  7. open: 'true',
  8. host: '0.0.0.0',
  9. port: '9529',
  10. https: false,
  11. hotOnly: false,
  12. //proxy:'http://120.27.2.251:8084'
  13. proxy: {
  14. '/industryParkApi': {
  15. target: 'https://www.idea-sf.com/industryParkApi/',
  16. // target: 'http://localhost:9001/',
  17. // target: 'http://134.175.95.41:9001/',
  18. ws: true,
  19. changeOrigin: true,
  20. pathRewrite: {
  21. '^/industryParkApi': '' // 请求的时候使用这个server就可以
  22. }
  23. }
  24. },
  25. }
  26. }