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: .github/CONTRIBUTING.md
+8
Original file line number
Diff line number
Diff line change
@@ -147,6 +147,14 @@ module. Thankfully, Github provides a means to do this. Add a dependency to the
147
147
148
148
Where `{id}` is the # ID of your Pull Request.
149
149
150
+
## Contributor License Agreement
151
+
152
+
When submitting your contribution, a CLA (Contributor License Agreement) bot will come by to verify that you signed the [CLA](https://cla.js.foundation/webpack-contrib/css-loader).
153
+
If it is your first time, it will link you to the right place to sign it.
154
+
However, if you have committed your contributions using an email that is not the same as your email used on GitHub, the CLA bot can't accept your contribution.
155
+
156
+
Run `git config user.email` to see your Git email, and verify it with [your GitHub email](https://github.com/settings/emails).
157
+
150
158
## Thanks
151
159
152
160
For your interest, time, understanding, and for following this simple guide.
|**[`modules`](#modules)**|`{Boolean\|String\|Object}`|`false`|Enables/Disables CSS Modules and their configuration |
117
+
|**[`sourceMap`](#sourcemap)**|`{Boolean}`|`false`|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
121
122
122
### `url`
123
123
124
124
Type: `Boolean|Function`
125
125
Default: `true`
126
126
127
+
Enables/Disables `url`/`image-set` functions handling.
127
128
Control `url()` resolving. Absolute URLs and root-relative URLs are not resolving.
128
129
129
130
Examples resolutions:
@@ -203,6 +204,7 @@ module.exports = {
203
204
Type: `Boolean`
204
205
Default: `true`
205
206
207
+
Enables/Disables `@import` at-rules handling.
206
208
Control `@import` resolving. Absolute urls in `@import` will be moved in runtime code.
207
209
208
210
Examples resolutions:
@@ -285,6 +287,8 @@ module.exports = {
285
287
Type: `Boolean|String|Object`
286
288
Default: `false`
287
289
290
+
Enables/Disables CSS Modules and their configuration.
291
+
288
292
The `modules` option enables/disables the **[CSS Modules](https://github.com/css-modules/css-modules)** specification and setup basic behaviour.
289
293
290
294
Using `false` value increase performance because we avoid parsing **CSS Modules** features, it will be useful for developers who use vanilla css or use other technologies.
@@ -703,14 +707,12 @@ module.exports = {
703
707
Type: `Boolean`
704
708
Default: `false`
705
709
706
-
To include source maps set the `sourceMap` option.
710
+
Enables/Disables generation of source maps.
707
711
708
-
I.e. the `mini-css-extract-plugin` can handle them.
712
+
To include source maps set the `sourceMap` option.
709
713
710
714
They are not enabled by default because they expose a runtime overhead and increase in bundle size (JS source maps do not).
711
715
712
-
In addition to that relative paths are buggy and you need to use an absolute public path which includes the server URL.
713
-
714
716
**webpack.config.js**
715
717
716
718
```js
@@ -734,6 +736,8 @@ module.exports = {
734
736
Type: `Number`
735
737
Default: `0`
736
738
739
+
Enables/Disables or setups number of loaders applied before CSS loader.
740
+
737
741
The option `importLoaders` allows you to configure how many loaders before `css-loader` should be applied to `@import`ed resources.
0 commit comments