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/ } }