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 04495a8

Browse files
author
Burhanuddin Udaipurwala
committed
docs: add docs for the css experiment
1 parent f0d6556 commit 04495a8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

‎src/content/configuration/experiments.mdx‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,28 @@ Detect changes to remote resources and upgrade them automatically.
184184

185185
Enable native CSS support. Note that it's an experimental feature still under development and will be enabled by default in webpack v6, however you can track the progress on [GitHub](https://github.com/webpack/webpack/issues/14893).
186186

187+
- Type:
188+
189+
- `boolean`
190+
- `CssExperimentOptions`
191+
192+
```ts
193+
{
194+
exportsOnly?: boolean;
195+
}
196+
```
197+
198+
Experimental features:
199+
200+
- Inbuilt support for CSS and CSS Modules. Use the `.module.css` extension for CSS Modules.
201+
- <Badge text="5.87.0+" /> Style-specific fields resolution in `package.json` files:
202+
webpack will look for `style` field in `package.json` files and use that if it
203+
exists for imports inside CSS files.
204+
205+
#### experiments.css.exportsOnly
206+
207+
Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
208+
187209
- Type: `boolean`
188210

189211
### experiments.cacheUnaffected

0 commit comments

Comments
(0)

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