From 01400ae054c0a8914d37f39a1cdd412bcccc0c4c Mon Sep 17 00:00:00 2001 From: Boris Serdiuk Date: Tue, 31 Dec 2024 03:47:11 +0100 Subject: [PATCH] docs: add rollup-plugin-css-only for rollup usage (#24) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 三咲智子 Kevin Deng --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2959a25..2d825db 100644 --- a/README.md +++ b/README.md @@ -27,12 +27,15 @@ export default defineConfig({
Rollup
+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()], } ```