vue.config.js 884 B

123456789101112131415161718192021222324252627282930
  1. module.exports = {
  2. publicPath: '/fireBrigadeUserManage',
  3. assetsDir:"static",
  4. outputDir: 'child',
  5. indexPath:"index.html",
  6. filenameHashing:"true",
  7. productionSourceMap: false,
  8. lintOnSave: false,
  9. devServer: {
  10. host:'0.0.0.0',
  11. port: 8086, // 端口号
  12. hot:true,
  13. disableHostCheck:true,//热更新不生效 可以打开此属性
  14. // https: false, // https:{type:Boolean}
  15. open: true, //配置自动启动浏览器
  16. proxy: {
  17. '/chat': {
  18. // target: process.env.VUE_APP_TARGET,
  19. // "http://43.143.198.30:8089";
  20. target: 'http://43.143.198.30:8089',
  21. // ws: true,
  22. changeOrigin: true,
  23. pathRewrite: {
  24. '^/chat': '' //代理的路径
  25. }
  26. },
  27. }
  28. },
  29. }