mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-20 10:59:21 +08:00
chore: 适配 vite 5
This commit is contained in:
parent
1a1c8886d2
commit
3f6a140e11
@ -4,7 +4,7 @@
|
||||
/** https://cn.vitejs.dev/guide/features.html#typescript-compiler-options */
|
||||
"useDefineForClassFields": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"moduleResolution": "bundler",
|
||||
/** TS 严格模式 */
|
||||
"strict": true,
|
||||
"jsx": "preserve",
|
||||
|
@ -43,7 +43,7 @@ export default (configEnv: ConfigEnv): UserConfigExport => {
|
||||
},
|
||||
/** 预热常用文件,提高初始页面加载速度 */
|
||||
warmup: {
|
||||
clientFiles: ["./src/{views,components}/*.vue"]
|
||||
clientFiles: ["./src/layouts/**/*.vue"]
|
||||
}
|
||||
},
|
||||
build: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user