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
|**[`modules`](#modules)**|`{Boolean\|String\|Object}`|`false`| Enables/Disables CSS Modules and their configuration |
117
+
|**[`sourceMap`](#sourcemap)**|`{Boolean}`|`compiler.devtool`| Enables/Disables generation of source maps |
118
+
|**[`importLoaders`](#importloaders)**|`{Number}`|`0`| Enables/Disables or setups number of loaders applied before CSS loader |
119
+
|**[`localsConvention`](#localsconvention)**|`{String}`|`'asIs'`| Style of exported classnames |
120
+
|**[`onlyLocals`](#onlylocals)**|`{Boolean}`|`false`| Export only locals |
121
+
|**[`esModule`](#esmodule)**|`{Boolean}`|`false`| Use ES modules syntax |
122
122
123
123
### `url`
124
124
@@ -869,13 +869,9 @@ module.exports = {
869
869
### `sourceMap`
870
870
871
871
Type: `Boolean`
872
-
Default: `false`
873
-
874
-
Enables/Disables generation of source maps.
875
-
876
-
To include source maps set the `sourceMap` option.
872
+
Default: depends on the `compiler.devtool` value
877
873
878
-
They are not enabled by default because they expose a runtime overhead and increase in bundle size (JS source maps do not).
874
+
By default generation of source maps depends on the [`devtool`](https://webpack.js.org/configuration/devtool/) option. All values enable source map generation except `eval` and `false` value.
0 commit comments