You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,10 @@ Essentially what it does is take all the CSS generated by the build process and
11
11
therefore not generated and the declaration in the generated HTML file is also removed. You can also configure when the
12
12
CSS injection will be executed (before or after your app code).
13
13
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
+
14
18
## Installation
15
19
16
20
```
@@ -240,7 +244,7 @@ export default {
240
244
241
245
#### relativeCSSInjection (boolean)
242
246
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._
244
248
245
249
The default behavior of this plugin takes all the CSS code of your application directly to the entrypoint generated.
246
250
The `relativeCSSInjection` if configured to `true` will inject the CSS code of every entrypoint to the relative importer.
0 commit comments