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
Copy file name to clipboardExpand all lines: docs/preprocess.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,13 @@ However, `svelte-preprocess` does provide extra functionalities not available wi
14
14
A Svelte preprocessor that supports transforming TypeScript, PostCSS, SCSS, Less, Stylus, and SugarSS. These are transformed when the script or style tags have the respective `lang` attribute.
15
15
16
16
- TypeScript: `<script lang="ts">`
17
-
- PostCSS: `<style lang="postcss">`
18
17
- SCSS: `<style lang="scss">`
19
18
- Less: `<style lang="less">`
20
19
- Stylus: `<style lang="stylus">`
21
20
- SugarSS: `<style lang="sss">`
22
21
22
+
By default, PostCSS or LightningCSS ([if configured in Vite](https://vitejs.dev/config/shared-options.html#css-transformer)) is applied to all `<style>` tags.
23
+
23
24
If required, you can turn script or style transforming off by setting the `script` or `style` option to `false`. The `style` option also accepts Vite's `InlineConfig` and `ResolvedConfig` types for advanced usage.
0 commit comments