yangfeng
2023-07-06 2605e8abbd4d5c8b6fc7086b05b876ed96917bb4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const { manageContextPath } = require("./public/serverconfig.js")
// 开发
const targetProxy = "http://basic-stable.cn" // 地址需后端提供
 
module.exports = {
  open: true,
  proxy: {
    [manageContextPath]: {
      target: targetProxy,
      changeOrigin: true
    }
  },
  watchOptions: {
    aggregateTimeout: 300, // 改动延迟时间
    poll: 1000, // 轮询时间
    ignored: /node_modules/
  }
}