mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
docs: clarify preprocessor options extension (#7280)
This commit is contained in:
parent
161f8eac89
commit
c6c2fbbd9f
@ -303,7 +303,7 @@ export default defineConfig(({ command, mode }) => {
|
||||
|
||||
- **Type:** `Record<string, object>`
|
||||
|
||||
Specify options to pass to CSS pre-processors. Example:
|
||||
Specify options to pass to CSS pre-processors. The file extensions are used as keys for the options. Example:
|
||||
|
||||
```js
|
||||
export default defineConfig({
|
||||
@ -311,6 +311,9 @@ export default defineConfig(({ command, mode }) => {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
additionalData: `$injectedColor: orange;`
|
||||
},
|
||||
styl: {
|
||||
additionalData: `$injectedColor ?= orange`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user