邱宇豪
2023-10-26 2cf827ada216097911ac25d555e8c841b765218b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? '/pipesu' : '/',
  // publicPath: process.env.NODE_ENV === 'production' ? '/pipe' : '/',
  devServer: {
    proxy: {
      '/suapi': {
        target: process.env.VUE_APP_BASE_URL,
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/suapi': ''  //路径重写 
        } 
      },
    }
  },
  chainWebpack: config => {
    config
      .plugin('html')
      .tap(args => {
        args[0].title= '面向现代制造的混凝土管片智慧工厂'
        return args
      })
  }
}