From c5fb25d1f217d36c4d8833af8fe75ea3141e9ca4 Mon Sep 17 00:00:00 2001 From: Anton Kalmanovich Date: Wed, 20 Sep 2023 13:16:36 +0200 Subject: [PATCH] Update README.md, add a line about cssCodeSplit --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 486d303..fb9f1d1 100644 --- a/README.md +++ b/README.md @@ -271,9 +271,11 @@ The `relativeCSSInjection` if configured to `true` will inject the CSS code of e **Set this option to `true` if you are using the multiple entry point option of Rollup.** _Future release can have an advanced behavior where this options will be configured to true automatically by sniffing user configurations._ -If a CSS code it's not injected inside some JS a warning will be showed. +If a CSS chunk is generated that's not imported by any JS chunk, a warning will be shown. To disable this warning set `suppressUnusedCssWarning` to `true`. +**For this feature to work, `build.cssCodeSplit` must be set to `true`** + ## Contributing When you make changes to plugin locally, you may want to build the js from the typescript file of the plugin.