Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webpack-contrib/css-loader
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bc16c3db953dbf4d711753fbb0cc60253def6916
Choose a base ref
...
head repository: webpack-contrib/css-loader
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7857d8f75937ad34e6250859e8ff0bbf2b88f098
Choose a head ref
Loading
Showing with 30,548 additions and 15,896 deletions.
  1. +0 −145 .circleci/config.yml
  2. +0 −1 .editorconfig
  3. +3 −2 .eslintignore
  4. +2 −6 .eslintrc.js
  5. +2 −1 .gitattributes
  6. +77 −41 .github/CONTRIBUTING.md
  7. +1 −0 .github/FUNDING.yml
  8. +9 −10 .github/ISSUE_TEMPLATE/BUG.md
  9. +0 −2 .github/ISSUE_TEMPLATE/DOCS.md
  10. +5 −8 .github/ISSUE_TEMPLATE/FEATURE.md
  11. +5 −11 .github/ISSUE_TEMPLATE/MODIFICATION.md
  12. +0 −1 .github/ISSUE_TEMPLATE/SUPPORT.md
  13. +95 −0 .github/workflows/nodejs.yml
  14. +5 −0 .prettierignore
  15. +1 −0 .prettierrc.js
  16. +199 −1 CHANGELOG.md
  17. +591 −99 README.md
  18. +0 −45 appveyor.yml
  19. +34 −0 babel.config.js
  20. +3 −0 commitlint.config.js
  21. +6 −0 husky.config.js
  22. +4 −0 lint-staged.config.js
  23. +9,175 −6,162 package-lock.json
  24. +64 −91 package.json
  25. +152 −287 src/index.js
  26. +91 −42 src/options.json
  27. +77 −84 src/plugins/postcss-icss-parser.js
  28. +164 −73 src/plugins/postcss-import-parser.js
  29. +186 −108 src/plugins/postcss-url-parser.js
  30. +52 −39 src/runtime/api.js
  31. +32 −0 src/runtime/getUrl.js
  32. +0 −18 src/runtime/url-escape.js
  33. +508 −66 src/utils.js
  34. +0 −202 test/__snapshots__/camelCase-option.test.js.snap
  35. +0 −117 test/__snapshots__/errors.test.js.snap
  36. +383 −0 test/__snapshots__/esModule-option.test.js.snap
  37. +0 −150 test/__snapshots__/getLocalIdent-option.test.js.snap
  38. +184 −98 test/__snapshots__/icss.test.js.snap
  39. +2,058 −1,089 test/__snapshots__/import-option.test.js.snap
  40. +139 −74 test/__snapshots__/importLoaders-option.test.js.snap
  41. +336 −802 test/__snapshots__/loader.test.js.snap
  42. +0 −302 test/__snapshots__/localIdentName-option.test.js.snap
  43. +9,235 −2,538 test/__snapshots__/modules-option.test.js.snap
  44. +568 −114 test/__snapshots__/sourceMap-option.test.js.snap
  45. +812 −1,534 test/__snapshots__/url-option.test.js.snap
  46. +291 −0 test/__snapshots__/validate-options.test.js.snap
  47. +0 −101 test/camelCase-option.test.js
  48. +5 −5 test/cjs.test.js
  49. +0 −88 test/errors.test.js
  50. +241 −0 test/esModule-option.test.js
  51. +4 −3 test/fixtures/basic.js
  52. +5 −0 test/fixtures/empty.js
  53. 0 test/fixtures/{invalid.css → error.css}
  54. +5 −0 test/fixtures/error.js
  55. BIN test/fixtures/es-module/img.png
  56. +3 −0 test/fixtures/es-module/imported.css
  57. +10 −0 test/fixtures/es-module/source.css
  58. +5 −0 test/fixtures/es-module/source.js
  59. +11 −0 test/fixtures/es-module/template/index.css
  60. +6 −0 test/fixtures/es-module/template/index.js
  61. +9 −0 test/fixtures/es-module/template/template.js
  62. +5 −0 test/fixtures/icss/tests-cases/duplicate-export-in-multiple-export/source.js
  63. +5 −0 test/fixtures/icss/tests-cases/duplicate-export/source.js
  64. +5 −0 test/fixtures/icss/tests-cases/empty-export/source.js
  65. +5 −0 test/fixtures/icss/tests-cases/empty-import/source.js
  66. +5 −0 test/fixtures/icss/tests-cases/export-reserved-keywords/source.js
  67. +5 −0 test/fixtures/icss/tests-cases/export/source.js
  68. +5 −0 test/fixtures/icss/tests-cases/import-reserved-keywords/source.js
  69. +5 −0 test/fixtures/icss/tests-cases/import/source.js
  70. +5 −0 test/fixtures/icss/tests-cases/multiple-export/source.js
  71. +5 −0 test/fixtures/icss/tests-cases/multiple-keys-values-in-export/source.js
  72. +1 −0 test/fixtures/import/import-conditionNames.css
  73. +5 −0 test/fixtures/import/import-conditionNames.js
  74. +3 −0 test/fixtures/import/import-order.css
  75. +5 −0 test/fixtures/import/import-order.js
  76. +6 −0 test/fixtures/import/import-server-relative-url.css
  77. +5 −0 test/fixtures/import/import-server-relative-url.js
  78. +86 −8 test/fixtures/import/import.css
  79. +5 −0 test/fixtures/import/import.js
  80. +1 −0 test/fixtures/import/issue-683.css
  81. +5 −0 test/fixtures/import/issue-683.js
  82. +1 −0 test/fixtures/import/node_modules/issue-683/index.js
  83. +10 −0 test/fixtures/import/node_modules/issue-683/package.json
  84. +3 −0 test/fixtures/import/node_modules/issue-683/test.css
  85. 0 test/fixtures/import/node_modules/package-with-exports/index.cjs
  86. 0 test/fixtures/import/node_modules/package-with-exports/index.js
  87. +19 −0 test/fixtures/import/node_modules/package-with-exports/package.json
  88. +3 −0 test/fixtures/import/node_modules/package-with-exports/style.css
  89. +9 −0 test/fixtures/import/node_modules/test/package.json
  90. +3 −0 test/fixtures/import/node_modules/test/test.css
  91. +3 −0 test/fixtures/import/order-1.css
  92. +3 −0 test/fixtures/import/order-2.css
  93. +3 −0 test/fixtures/import/order-3-1.css
  94. +5 −0 test/fixtures/import/order-3.css
  95. +3 −0 test/fixtures/import/order-4-1.css
  96. +3 −0 test/fixtures/import/order-4-2-1.css
  97. +3 −0 test/fixtures/import/order-4-2-2.css
  98. +6 −0 test/fixtures/import/order-4-2.css
  99. +6 −0 test/fixtures/import/order-4.css
  100. +16 −0 test/fixtures/import/order.css
  101. +5 −0 test/fixtures/import/order.js
  102. +3 −0 test/fixtures/import/something.css
  103. +3 −0 test/fixtures/import/te'st.css
  104. +3 −0 test/fixtures/import/test test.css
  105. +1 −0 test/fixtures/import/unresolved.css
  106. +5 −0 test/fixtures/import/unresolved.js
  107. +8 −0 test/fixtures/integration/css.module.css
  108. +3 −0 test/fixtures/integration/imported-by-module-scss.css
  109. +3 −0 test/fixtures/integration/imported-by-postcss.css
  110. +3 −0 test/fixtures/integration/imported-by-pure.css
  111. +3 −0 test/fixtures/integration/imported-by-scss.css
  112. +9 −0 test/fixtures/integration/index.js
  113. +9 −0 test/fixtures/integration/postcss.css
  114. +5 −0 test/fixtures/integration/pure.css
  115. +12 −0 test/fixtures/integration/scss.module.scss
  116. +9 −0 test/fixtures/integration/scss.scss
  117. +1 −0 test/fixtures/invisible-space.css
  118. +5 −0 test/fixtures/invisible-space.js
  119. +0 −58 test/fixtures/modules/composes.css
  120. 0 test/fixtures/modules/{ → composes}/alias.css
  121. +9 −0 test/fixtures/modules/composes/composes-duplicate.css
  122. +5 −0 test/fixtures/modules/composes/composes-duplicate.js
  123. +26 −0 test/fixtures/modules/composes/composes-preprocessors.css
  124. +5 −0 test/fixtures/modules/composes/composes-preprocessors.js
  125. +161 −0 test/fixtures/modules/composes/composes.css
  126. +5 −0 test/fixtures/modules/composes/composes.js
  127. 0 test/fixtures/modules/{ → composes}/imported-simple.css
  128. +8 −0 test/fixtures/modules/composes/less-file.less
  129. 0 test/fixtures/modules/{ → composes}/relative.css
  130. +11 −0 test/fixtures/modules/composes/scss-file.scss
  131. +1 −0 test/fixtures/modules/composes/something.css
  132. 0 test/fixtures/modules/{ → composes}/test-other.css
  133. 0 test/fixtures/modules/{ → composes}/top-relative.css
  134. +4 −0 test/fixtures/modules/composes/values.css
  135. +6 −0 test/fixtures/modules/dedupe/buttons/button.css
  136. +6 −0 test/fixtures/modules/dedupe/buttons/primary-button.css
  137. +6 −0 test/fixtures/modules/dedupe/buttons/secondary-button.css
  138. +9 −0 test/fixtures/modules/dedupe/source.css
  139. +5 −0 test/fixtures/modules/dedupe/source.js
  140. +11 −0 test/fixtures/modules/exportGlobals-global/exportGlobals.css
  141. +5 −0 test/fixtures/modules/exportGlobals-global/exportGlobals.js
  142. +11 −0 test/fixtures/modules/exportGlobals-local/exportGlobals.css
  143. +5 −0 test/fixtures/modules/exportGlobals-local/exportGlobals.js
  144. +11 −0 test/fixtures/modules/exportGlobals-pure/exportGlobals.css
  145. +5 −0 test/fixtures/modules/exportGlobals-pure/exportGlobals.js
  146. +0 −7 test/fixtures/modules/getLocalIdent.css
  147. 0 test/fixtures/modules/issue-1033/issue-1033.css
  148. +5 −0 test/fixtures/modules/issue-1033/issue-1033.js
  149. +7 −0 test/fixtures/modules/issue-1063/global.css
  150. +7 −0 test/fixtures/modules/issue-1063/issue-1063.js
  151. +7 −0 test/fixtures/modules/issue-1063/local.css
  152. +3 −0 test/fixtures/modules/issue-1063/pure.css
  153. +5 −0 test/fixtures/modules/issue-286/source.js
  154. +5 −0 test/fixtures/modules/issue-636/source.js
  155. 0 test/fixtures/modules/{ → issue-861}/node_modules/@localpackage/color.css
  156. +6 −0 test/fixtures/modules/issue-861/node_modules/@localpackage/style.css
  157. 0 test/fixtures/modules/{ → issue-861}/node_modules/@otherlocalpackage/style.css
  158. 0 test/fixtures/modules/{ → issue-861}/node_modules/package/style.css
  159. +8 −0 test/fixtures/modules/issue-861/resolving-from-node_modules.css
  160. +5 −0 test/fixtures/modules/issue-861/resolving-from-node_modules.js
  161. +8 −0 test/fixtures/modules/issue-914/source.css
  162. +5 −0 test/fixtures/modules/issue-914/source.js
  163. +3 −0 test/fixtures/modules/issue-966/button.css
  164. +5 −0 test/fixtures/modules/issue-966/button.js
  165. +5 −0 test/fixtures/modules/issue-966/toolbar.css
  166. +11 −0 test/fixtures/modules/issue-967/path-placeholder.css
  167. +5 −0 test/fixtures/modules/issue-967/path-placeholder.js
  168. +3 −0 test/fixtures/modules/issue-980/file.with.many.dots.in.name.css
  169. +5 −0 test/fixtures/modules/issue-980/file.with.many.dots.in.name.js
  170. +93 −0 test/fixtures/modules/issue-995/issue-995.css
  171. +5 −0 test/fixtures/modules/issue-995/issue-995.js
  172. +0 −27 test/fixtures/modules/localIdentName.css
  173. +113 −0 test/fixtures/modules/localIdentName/localIdentName.css
  174. +5 −0 test/fixtures/modules/localIdentName/localIdentName.js
  175. +4 −0 test/fixtures/modules/{camelCase.css → localsConvention/localsConvention.css}
  176. +5 −0 test/fixtures/modules/localsConvention/localsConvention.js
  177. +5 −0 test/fixtures/modules/mode/modules.js
  178. +3 −0 test/fixtures/modules/mode/relative.module.css
  179. +7 −0 test/fixtures/modules/namedExport/base/index.css
  180. +5 −0 test/fixtures/modules/namedExport/base/index.js
  181. +3 −0 test/fixtures/modules/namedExport/broken/index.css
  182. +5 −0 test/fixtures/modules/namedExport/broken/index.js
  183. +20 −0 test/fixtures/modules/namedExport/nested/index.css
  184. +5 −0 test/fixtures/modules/namedExport/nested/index.js
  185. +11 −0 test/fixtures/modules/namedExport/template/index.css
  186. +8 −0 test/fixtures/modules/namedExport/template/index.js
  187. +11 −0 test/fixtures/modules/namedExport/template/template.js
  188. +0 −6 test/fixtures/modules/node_modules/@localpackage/style.css
  189. +2 −0 test/fixtures/modules/node_modules/test/index.css
  190. +9 −0 test/fixtures/modules/node_modules/test/package.json
  191. +12 −0 test/fixtures/modules/order/index.css
  192. +5 −0 test/fixtures/modules/order/index.js
  193. +7 −0 test/fixtures/modules/order/order-1.css
  194. +7 −0 test/fixtures/modules/order/order-2.css
  195. +39 −0 test/fixtures/modules/pure/pure.css
  196. +5 −0 test/fixtures/modules/pure/pure.js
  197. +0 −8 test/fixtures/modules/resolving-inside-node-modules.css
  198. +0 −1 test/fixtures/modules/something.css
  199. +5 −0 test/fixtures/modules/tests-cases/animation/source.js
  200. +5 −0 test/fixtures/modules/tests-cases/class-names/source.js
  201. +5 −0 test/fixtures/modules/tests-cases/comment-in-local/source.js
  202. +5 −0 test/fixtures/modules/tests-cases/comments/source.js
  203. +5 −0 test/fixtures/modules/tests-cases/composes-1/source.js
  204. +5 −0 test/fixtures/modules/tests-cases/composes-2/source.js
  205. +5 −0 test/fixtures/modules/tests-cases/composes-multiple/source.js
  206. +5 −0 test/fixtures/modules/tests-cases/composes-with-importing/source.js
  207. +5 −0 test/fixtures/modules/tests-cases/composes/source.js
  208. +5 −0 test/fixtures/modules/tests-cases/declaration-value/source.js
  209. +1 −1 test/fixtures/modules/tests-cases/issue-589/source.css
  210. +5 −0 test/fixtures/modules/tests-cases/issue-589/source.js
  211. +5 −0 test/fixtures/modules/tests-cases/keyframes-and-animation/source.js
  212. +5 −0 test/fixtures/modules/tests-cases/leak-scope/source.js
  213. +5 −0 test/fixtures/modules/tests-cases/local-2/source.js
  214. +5 −0 test/fixtures/modules/tests-cases/local-and-composes/source.js
  215. +5 −0 test/fixtures/modules/tests-cases/local-with-string/source.js
  216. +5 −0 test/fixtures/modules/tests-cases/local/source.js
  217. +5 −0 test/fixtures/modules/tests-cases/media-2/source.js
  218. +5 −0 test/fixtures/modules/tests-cases/media/source.js
  219. +5 −0 test/fixtures/modules/tests-cases/mode-switching/source.js
  220. +5 −0 test/fixtures/modules/tests-cases/simple/source.js
  221. +5 −0 test/fixtures/modules/tests-cases/urls/source.js
  222. +5 −0 test/fixtures/modules/tests-cases/values-1/source.js
  223. +18 −0 test/fixtures/modules/tests-cases/values-10/source.css
  224. +5 −0 test/fixtures/modules/tests-cases/values-10/source.js
  225. +5 −0 test/fixtures/modules/tests-cases/values-2/source.js
  226. +5 −0 test/fixtures/modules/tests-cases/values-3/source.js
  227. +5 −0 test/fixtures/modules/tests-cases/values-4/source.js
  228. +5 −0 test/fixtures/modules/tests-cases/values-5/source.js
  229. +5 −0 test/fixtures/modules/tests-cases/values-6/source.js
  230. +5 −0 test/fixtures/modules/tests-cases/values-7/source.js
  231. +5 −0 test/fixtures/modules/tests-cases/values-8/source.js
  232. +5 −0 test/fixtures/modules/tests-cases/values-9/source.js
  233. +5 −0 test/fixtures/modules/tests-cases/values/source.js
  234. +6 −0 test/fixtures/modules/unresolved/source.css
  235. +5 −0 test/fixtures/modules/unresolved/source.js
  236. BIN test/fixtures/modules/url/img.png
  237. +1 −0 test/fixtures/modules/url/shared.css
  238. +10 −0 test/fixtures/modules/url/source.css
  239. +5 −0 test/fixtures/modules/url/source.js
  240. +0 −2 test/fixtures/modules/values.css
  241. +4 −0 test/fixtures/nested-import/other-imported.css
  242. +1 −0 test/fixtures/nested-import/source.css
  243. +5 −0 test/fixtures/nested-import/source.js
  244. +5 −0 test/fixtures/postcss-present-env/source.js
  245. +5 −0 test/fixtures/scss/source.js
  246. +2 −0 test/fixtures/simple-style.js
  247. +3 −0 test/fixtures/simple.css
  248. +5 −0 test/fixtures/simple.js
  249. +5 −0 test/fixtures/source-map/basic-postcss.js
  250. +5 −0 test/fixtures/source-map/basic-scss.js
  251. +2 −0 test/fixtures/source-map/basic.css
  252. +5 −0 test/fixtures/source-map/basic.js
  253. +2 −0 test/fixtures/source-map/basic.postcss.css
  254. +3 −0 test/fixtures/source-map/nested/nested.css
  255. +3 −0 test/fixtures/source-map/nested/nested.postcss.css
  256. +3 −0 test/fixtures/source-map/with-query.css
  257. +5 −0 test/fixtures/source-map/with-query.js
  258. BIN test/fixtures/url/img'''img.png
  259. BIN test/fixtures/url/img'() img.png
  260. BIN test/fixtures/url/img'img.png
  261. BIN test/fixtures/url/img(img.png
  262. BIN test/fixtures/url/img)img.png
  263. BIN test/fixtures/url/something.png
  264. +3 −0 test/fixtures/url/url-unresolved.css
  265. +5 −0 test/fixtures/url/url-unresolved.js
  266. +103 −2 test/fixtures/url/url.css
  267. +5 −0 test/fixtures/url/url.js
  268. +0 −130 test/getLocalIdent-option.test.js
  269. +0 −261 test/helpers.js
  270. +30 −0 test/helpers/ast-loader.js
  271. +11 −0 test/helpers/compile.js
  272. +22 −0 test/helpers/execute.js
  273. +69 −0 test/helpers/getCompiler.js
  274. +5 −0 test/helpers/getErrors.js
  275. +17 −0 test/helpers/getExecutedCode.js
  276. +10 −0 test/helpers/getModuleSource.js
  277. +5 −0 test/helpers/getWarnings.js
  278. +23 −0 test/helpers/index.js
  279. +40 −0 test/helpers/normalizeErrors.js
  280. +5 −0 test/helpers/preLoader.js
  281. +23 −0 test/helpers/readAsset.js
  282. +11 −0 test/helpers/readAssets.js
  283. +5 −0 test/helpers/string-loader.js
  284. +5 −0 test/helpers/url-loader.js
  285. +21 −11 test/icss.test.js
  286. +140 −65 test/import-option.test.js
  287. +149 −82 test/importLoaders-option.test.js
  288. +401 −120 test/loader.test.js
  289. +0 −120 test/localIdentName-option.test.js
  290. +1,104 −103 test/modules-option.test.js
  291. +14 −4 test/runtime/__snapshots__/api.test.js.snap
  292. +87 −0 test/runtime/__snapshots__/getUrl.test.js.snap
  293. +0 −25 test/runtime/__snapshots__/url-escape.test.js.snap
  294. +76 −3 test/runtime/api.test.js
  295. +127 −0 test/runtime/getUrl.test.js
  296. +0 −19 test/runtime/url-escape.test.js
  297. +526 −207 test/sourceMap-option.test.js
  298. +59 −66 test/url-option.test.js
  299. +142 −0 test/validate-options.test.js
145 changes: 0 additions & 145 deletions .circleci/config.yml

This file was deleted.

1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -9,5 +9,4 @@ insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = true
trim_trailing_whitespace = false
5 changes: 3 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules
/src/runtime
/coverage
/dist
/node_modules
/test/fixtures
8 changes: 2 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
module.exports = {
root: true,
plugins: ['prettier'],
extends: ['@webpack-contrib/eslint-config-webpack'],
rules: {
'prettier/prettier': ['error'],
},
};
extends: ['@webpack-contrib/eslint-config-webpack', 'prettier'],
};
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package-lock.json -diff
* text=auto
bin/* eol=lf
yarn.lock -diff
package-lock.json -diff
118 changes: 77 additions & 41 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
## Contributing in @webpack-contrib
# Contributing in @webpack-contrib

We'd always love contributions to further improve the webpack / webpack-contrib ecosystem!
We'd always love contributions to further improve the webpack / webpack-contrib ecosystem!
Here are the guidelines we'd like you to follow:

* [Questions and Problems](#question)
* [Issues and Bugs](#issue)
* [Feature Requests](#feature)
* [Pull Request Submission Guidelines](#submit-pr)
* [Commit Message Conventions](#commit)
- [Questions and Problems](#question)
- [Issues and Bugs](#issue)
- [Feature Requests](#feature)
- [Pull Request Submission Guidelines](#submit-pr)
- [Commit Message Conventions](#commit)

### <a name="question"></a> Got a Question or Problem?
## <a name="question"></a> Got a Question or Problem?

Please submit support requests and questions to StackOverflow using the tag [[webpack]](http://stackoverflow.com/tags/webpack).
StackOverflow is better suited for this kind of support though you may also inquire in [Webpack Gitter](https://gitter.im/webpack/webpack).
Please submit support requests and questions to StackOverflow using the tag [[webpack]](http://stackoverflow.com/tags/webpack).
StackOverflow is better suited for this kind of support though you may also inquire in [Webpack Gitter](https://gitter.im/webpack/webpack).
The issue tracker is for bug reports and feature discussions.

### <a name="issue"></a> Found an Issue or Bug?
## <a name="issue"></a> Found an Issue or Bug?

Before you submit an issue, please search the issue tracker, maybe an issue for your problem already exists and the discussion might inform you of workarounds readily available.

@@ -31,13 +31,13 @@ We will be insisting on a minimal reproduce scenario in order to save maintainer

Unfortunately, we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you we are going to close an issue that doesn't have enough info to be reproduced.

### <a name="feature"></a> Feature Requests?
## <a name="feature"></a> Feature Requests?

You can *request* a new feature by creating an issue on Github.
You can _request_ a new feature by creating an issue on Github.

If you would like to *implement* a new feature, please submit an issue with a proposal for your work `first`, to be sure that particular makes sense for the project.
If you would like to _implement_ a new feature, please submit an issue with a proposal for your work `first`, to be sure that particular makes sense for the project.

### <a name="submit-pr"></a> Pull Request Submission Guidelines
## <a name="submit-pr"></a> Pull Request Submission Guidelines

Before you submit your Pull Request (PR) consider the following guidelines:

@@ -46,9 +46,9 @@ Before you submit your Pull Request (PR) consider the following guidelines:
- Fill out our `Pull Request Template`. Your pull request will not be considered if it is ignored.
- Please sign the `Contributor License Agreement (CLA)` when a pull request is opened. We cannot accept your pull request without this. Make sure you sign with the primary email address associated with your local / github account.

### <a name="commit"></a> Webpack Contrib Commit Conventions
## <a name="commit"></a> Webpack Contrib Commit Conventions

Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
format that includes a **type**, a **scope** and a **subject**:

```
@@ -66,48 +66,56 @@ to read on GitHub as well as in various git tools.

The footer should contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages/) if any.

Examples:
Examples:

```
docs(readme): update install instructions
```

```
fix: refer to the `entrypoint` instead of the first `module`
```

#### Revert
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit.
### Revert

If the commit reverts a previous commit, it should begin with `revert:`, followed by the header of the reverted commit.
In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.

#### Type
### Type

Must be one of the following:

* **build**: Changes that affect the build system or external dependencies (example scopes: babel, npm)
* **chore**: Changes that fall outside of build / docs that do not effect source code (example scopes: package, defaults)
* **ci**: Changes to our CI configuration files and scripts (example scopes: circleci, travis)
* **docs**: Documentation only changes (example scopes: readme, changelog)
* **feat**: A new feature
* **fix**: A bug fix
* **perf**: A code change that improves performance
* **refactor**: A code change that neither fixes a bug nor adds a feature
* **revert**: Used when reverting a committed change
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons)
* **test**: Addition of or updates to Jest tests

#### Scope
- **build**: Changes that affect the build system or external dependencies (example scopes: babel, npm)
- **chore**: Changes that fall outside of build / docs that do not effect source code (example scopes: package, defaults)
- **ci**: Changes to our CI configuration files and scripts (example scopes: circleci, travis)
- **docs**: Documentation only changes (example scopes: readme, changelog)
- **feat**: A new feature
- **fix**: A bug fix
- **perf**: A code change that improves performance
- **refactor**: A code change that neither fixes a bug nor adds a feature
- **revert**: Used when reverting a committed change
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons)
- **test**: Addition of or updates to Jest tests

### Scope

The scope is subjective & depends on the `type` see above. A good example would be a change to a particular class / module.

#### Subject
### Subject

The subject contains a succinct description of the change:

* use the imperative, present tense: "change" not "changed" nor "changes"
* don't capitalize the first letter
* no dot (.) at the end
- use the imperative, present tense: "change" not "changed" nor "changes"
- don't capitalize the first letter
- no dot (.) at the end

### Body

#### Body
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
The body should include the motivation for the change and contrast this with previous behavior.

#### Footer
### Footer

The footer should contain any information about **Breaking Changes** and is also the place to
reference GitHub issues that this commit **Closes**.

@@ -116,9 +124,37 @@ reference GitHub issues that this commit **Closes**.
Example

```
BREAKING CHANGE: Updates to `Chunk.mapModules`.
BREAKING CHANGE: Updates to `Chunk.mapModules`.
This release is not backwards compatible with `Webpack 2.x` due to breaking changes in webpack/webpack#4764
Migration: see webpack/webpack#5225
```

## Testing Your Pull Request

You may have the need to test your changes in a real-world project or dependent
module. Thankfully, Github provides a means to do this. Add a dependency to the
`package.json` for such a project as follows:

```json
{
"devDependencies": {
"css-loader": "webpack-contrib/css-loader#{id}/head"
}
}
```

Where `{id}` is the # ID of your Pull Request.

## Contributor License Agreement

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).
If it is your first time, it will link you to the right place to sign it.
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.

Run `git config user.email` to see your Git email, and verify it with [your GitHub email](https://github.com/settings/emails).

## Thanks

For your interest, time, understanding, and for following this simple guide.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: webpack
Loading