Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1751991

Browse files
author
Burhanuddin Udaipurwala
committed
docs: add experimental features
1 parent 04495a8 commit 1751991

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎src/content/configuration/experiments.mdx‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,15 @@ Enable native CSS support. Note that it's an experimental feature still under de
197197

198198
Experimental features:
199199

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+" />:
202202
webpack will look for `style` field in `package.json` files and use that if it
203203
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.
204209

205210
#### experiments.css.exportsOnly
206211

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /