Skip to content

Commit 5b1d5fb

Browse files
committed
perf: run CSS preprocessors in threads
1 parent c57582a commit 5b1d5fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ export default defineConfig(({ mode }) => {
9393
optimizeDeps: {
9494
include: ["element-plus/es/components/*/style/css"]
9595
},
96+
// CSS 相关配置
97+
css: {
98+
// 线程中运行 CSS 预处理器
99+
preprocessorMaxWorkers: true
100+
},
96101
// 插件配置
97102
plugins: [
98103
vue(),

0 commit comments

Comments
 (0)