Skip to content

Commit 2bf2cb1

Browse files
[#106] Update README (#107)
1 parent 6444aa5 commit 2bf2cb1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Essentially what it does is take all the CSS generated by the build process and
1111
therefore not generated and the declaration in the generated HTML file is also removed. You can also configure when the
1212
CSS injection will be executed (before or after your app code).
1313

14+
### A note for plugin-legacy users
15+
At first the plugin supported generating the CSS injection code also in the legacy files generated by the [plugin-legacy](https://github.com/vitejs/vite/tree/main/packages/plugin-legacy). Since the plugin-legacy injects the CSS code for [different reasons](https://github.com/vitejs/vite/issues/2062), this plugin no longer has the plugin-legacy support code.
16+
If the code of the plugin-legacy changes an update to this plugin may occur.
17+
1418
## Installation
1519

1620
```
@@ -240,7 +244,7 @@ export default {
240244

241245
#### relativeCSSInjection (boolean)
242246

243-
**!!! Experimental feature !!!**
247+
_This feature is based on information provided by Vite. Since we can't control how Vite handles this information this means that there may be problems that may not be possible to fix them in this plugin._
244248

245249
The default behavior of this plugin takes all the CSS code of your application directly to the entrypoint generated.
246250
The `relativeCSSInjection` if configured to `true` will inject the CSS code of every entrypoint to the relative importer.

0 commit comments

Comments
 (0)