Skip to content

Commit 01400ae

Browse files
just-borissxzz
andauthored
docs: add rollup-plugin-css-only for rollup usage (#24)
Co-authored-by: 三咲智子 Kevin Deng <[email protected]>
1 parent 0472860 commit 01400ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@ export default defineConfig({
2727
<details>
2828
<summary>Rollup</summary><br>
2929

30+
Since Rollup does not support CSS out of the box, you need to use a CSS plugin like [`rollup-plugin-css-only`](https://github.com/thgh/rollup-plugin-css-only).
31+
3032
```ts
3133
// rollup.config.js
34+
import css from 'rollup-plugin-css-only'
3235
import LightningCSS from 'unplugin-lightningcss/rollup'
3336

3437
export default {
35-
plugins: [LightningCSS()],
38+
plugins: [LightningCSS(), css()],
3639
}
3740
```
3841

0 commit comments

Comments
 (0)