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
`Rule.type` sets the type for a matching module. This prevents defaultRules and their default importing behaviors from occurring. For example, if you want to load a `.json` file through a custom loader, you'd need to set the `type` to `javascript/auto` to bypass webpack's built-in json importing. (See [v4.0 changelog](https://github.com/webpack/webpack/releases/tag/v4.0.0) for more details)
1040
1040
@@ -1058,6 +1058,31 @@ module.exports = {
1058
1058
1059
1059
> See [Asset Modules guide](/guides/asset-modules/) for more about `asset*` type.
1060
1060
1061
+
### css/auto
1062
+
1063
+
<Badgetext="5.87.0+" />
1064
+
1065
+
See use case of `css/auto` module type [here](https://github.com/webpack/webpack/issues/16572). Make sure to enable [`experiments.css`](/configuration/experiments/#experimentscss) to use `css/auto`.
0 commit comments