You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`styl`/`stylus` - Only [`define`](https://stylus-lang.com/docs/js.html#define-name-node) is supported, which can be passed as an object.
224
224
225
-
All preprocessor options also support the `additionalData` option, which can be used to inject extra code for each style content. Note that if you include actual styles and not just variables, those styles will be duplicated in the final bundle.
This option can be used to inject extra code for each style content. Note that if you include actual styles and not just variables, those styles will be duplicated in the final bundle.
249
+
250
+
**Example:**
251
+
252
+
```js
253
+
exportdefaultdefineConfig({
254
+
css: {
255
+
preprocessorOptions: {
256
+
scss: {
257
+
additionalData:`$injectedColor: orange;`,
258
+
},
259
+
},
260
+
},
261
+
})
262
+
```
263
+
264
+
## css.preprocessorMaxWorkers
265
+
266
+
-**Experimental:**[Give Feedback](TODO: update)
267
+
-**Type:**`number | true`
268
+
-**Default:**`0` (does not create any workers and run in the main thread)
269
+
270
+
If this option is set, CSS preprocessors will run in workers when possible. `true` means the number of CPUs minus 1.
0 commit comments