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:
parent
3810f269bf
commit
f50ccba6d4
@ -40,6 +40,10 @@ export default (configEnv: ConfigEnv): UserConfigExport => {
|
||||
/** 是否允许跨域 */
|
||||
changeOrigin: true
|
||||
}
|
||||
},
|
||||
/** 预热常用文件,提高初始页面加载速度 */
|
||||
warmup: {
|
||||
clientFiles: ["./src/{views,components}/*.vue"]
|
||||
}
|
||||
},
|
||||
build: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user