Skip to content

Commit f1b3b93

Browse files
sync: Update Vite docs from upstream 20250529
1 parent a20673e commit f1b3b93

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/config/shared-options.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,12 @@ export default defineConfig({
278278

279279
## css.preprocessorMaxWorkers
280280

281-
- **Experimental:** [Give Feedback](https://github.com/vitejs/vite/discussions/15835)
282281
- **Type:** `number | true`
283-
- **Default:** `0` (does not create any workers and run in the main thread)
282+
- **Default:** `true`
283+
284+
Specifies the maximum number of threads CSS preprocessors can use. `true` means up to the number of CPUs minus 1. When set to `0`, Vite will not create any workers and will run the preprocessors in the main thread.
284285

285-
If this option is set, CSS preprocessors will run in workers when possible. `true` means the number of CPUs minus 1.
286+
Depending on the preprocessor options, Vite may run the preprocessors on the main thread even if this option is not set to `0`.
286287

287288
## css.devSourcemap
288289

0 commit comments

Comments
 (0)