Skip to content

Commit

Permalink
docs: add rollup-plugin-css-only for rollup usage (#24)
Browse files Browse the repository at this point in the history
Co-authored-by: 三咲智子 Kevin Deng <[email protected]>
  • Loading branch information
just-boris and sxzz authored Dec 31, 2024
1 parent 0472860 commit 01400ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@ export default defineConfig({
<details>
<summary>Rollup</summary><br>

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).

```ts
// rollup.config.js
import css from 'rollup-plugin-css-only'
import LightningCSS from 'unplugin-lightningcss/rollup'

export default {
plugins: [LightningCSS()],
plugins: [LightningCSS(), css()],
}
```

Expand Down

0 comments on commit 01400ae

Please sign in to comment.