vite-plugin-css-position 3.0.0-next.3 → 3.0.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,6 +114,17 @@ The `cssChunksStrategy` option chooses how the CSS is included:
|
|
|
114
114
|
No FOUC, deduplicated across multiple shadow roots, and CSP-ideal. Requires `fetch` and a modern
|
|
115
115
|
browser (Chrome 73+ / Firefox 101+ / Safari 16.4+);
|
|
116
116
|
|
|
117
|
+
## Migrating from v2 to v3
|
|
118
|
+
|
|
119
|
+
No code changes required — the default `mode: "inject"` behaves exactly like `2.0.9`.
|
|
120
|
+
|
|
121
|
+
What's new in `3.0.0`:
|
|
122
|
+
|
|
123
|
+
- New **`mode`** option: `"injectPerChunk"` and `"cssChunks"` add component-level lazy-loading; `"cssChunks"` keeps Vite's emitted `.css` files (see [Modes](#modes)).
|
|
124
|
+
- **Zero runtime dependencies** — the CSS-by-JS injection is now built in.
|
|
125
|
+
|
|
126
|
+
See the [CHANGELOG](./CHANGELOG.md) for details.
|
|
127
|
+
|
|
117
128
|
## Development
|
|
118
129
|
|
|
119
130
|
```bash
|