Skip to content

Commit 195c0ef

Browse files
committed
perf: vite optimizeDeps
1 parent b43d89b commit 195c0ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ export default defineConfig(({ mode }) => {
8888
// 打包构建时移除所有注释
8989
legalComments: "none"
9090
},
91+
// 依赖预构建
92+
optimizeDeps: {
93+
include: ["vant/es/*/style/index"]
94+
},
9195
// CSS 相关配置
9296
css: {
9397
// 线程中运行 CSS 预处理器

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy