Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 10:59:21 +08:00

perf: 开启 vite5 的预热功能,提高初始页面加载速度

This commit is contained in:
pany 2023-12-02 15:19:42 +08:00
parent 3810f269bf
commit f50ccba6d4

View File

@ -40,6 +40,10 @@ export default (configEnv: ConfigEnv): UserConfigExport => {
/** 是否允许跨域 */
changeOrigin: true
}
},
/** 预热常用文件,提高初始页面加载速度 */
warmup: {
clientFiles: ["./src/{views,components}/*.vue"]
}
},
build: {