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
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,6 +184,28 @@ Detect changes to remote resources and upgrade them automatically.
184
184
185
185
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).
186
186
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
+
- <Badgetext="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.
0 commit comments