Skip to content

Commit

Permalink
[#116] Update README.md, add a line about cssCodeSplit (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
grumd authored Oct 9, 2023
1 parent 502b4a2 commit 62b474e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 62b474e

Please sign in to comment.