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: src/content/configuration/experiments.mdx
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,10 +197,15 @@ Enable native CSS support. Note that it's an experimental feature still under de
197
197
198
198
Experimental features:
199
199
200
-
-Inbuilt support for CSS and CSS Modules. Use the `.module.css` extension for CSS Modules.
201
-
-<Badgetext="5.87.0+" /> Style-specific fields resolution in `package.json` files:
200
+
-CSS Modules support: webpack will generate a unique name for each CSS class. Use the `.module.css` extension for CSS Modules.
201
+
- Style-specific fields resolution in `package.json` files <Badgetext="5.87.0+" />:
202
202
webpack will look for `style` field in `package.json` files and use that if it
203
203
exists for imports inside CSS files.
204
+
- Content hash for CSS files: webpack will generate a content hash for CSS files
205
+
and use it in the filename. This is useful for long-term caching.
206
+
- CSS extraction: Webpack will extract CSS into a separate file. This functionality replaces the need for `mini-css-extract-plugin` and `css-loader`, as it provides native support.
207
+
- CSS imports: webpack will inline CSS imports into the generated CSS file.
208
+
- Hot Module Reload (HMR): webpack supports HMR for CSS files. This means that changes made to CSS files will be reflected in the browser without a full page reload.
0 commit comments