Skip to content

Commit fdbbbb9

Browse files
alecglassfordkaisermann
authored andcommitted
docs: Update documentation about Sass options
* Note that Sass preprocessing always uses renderSync (in 5.0.0 and later) * Use more specific cross-reference link for Sass options
1 parent 4218419 commit fdbbbb9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docs/preprocessing.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,12 +349,9 @@ input(on:input="{bar}")
349349

350350
### scss, sass
351351

352-
The `scss/sass` preprocessor accepts the default sass options alongside two other props:
352+
The `scss/sass` preprocessor accepts the options listed in the [Sass `LegacyStringOptions` API reference](https://sass-lang.com/documentation/js-api/interfaces/LegacyStringOptions) with some exceptions: the `file` and `data` properties are not supported. Instead, use the `prependData` property if you want to prepend some content to your `scss` content.
353353

354-
| Option | Default | Description |
355-
| ---------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------ |
356-
| `renderSync` | `false` | if `true`, use the sync render method which is faster for dart sass. |
357-
You can check the [Sass Legacy API reference](https://sass-lang.com/documentation/js-api#legacy-api) for specific Sass options. The `file` and `data` properties are not supported. Instead, use the `prependData` property if you want to prepend some content to your `scss` content.
354+
Note: `svelte-preprocess` (version 5.0.0 and later) always uses [Sass's legacy `renderSync` API](https://sass-lang.com/documentation/js-api/#legacy-api).
358355

359356
Note: `svelte-preprocess` automatically configures inclusion paths for your root directory, `node_modules` and for the current file's directory.
360357

0 commit comments

Comments
 (0)