Skip to content

Commit de3d1d9

Browse files
committed
perf: run CSS preprocessors in threads
1 parent 3577c36 commit de3d1d9

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
@@ -90,6 +90,11 @@ export default defineConfig(({ mode }) => {
9090
// 打包构建时移除所有注释
9191
legalComments: "none"
9292
},
93+
// CSS 相关配置
94+
css: {
95+
// 线程中运行 CSS 预处理器
96+
preprocessorMaxWorkers: true
97+
},
9398
// 插件配置
9499
plugins: [
95100
vue(),

0 commit comments

Comments
 (0)