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: 7d2abbaa82a093fa9b71223e1b5ab485cf7e9623
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: 634ab49c17b284e55e62105109412ebd37e234b5
Choose a head ref

Commits on Jan 11, 2016

  1. Specify node engine minimum version

    Setting the minimum version of the node engine will make npm to warn or
    complain, if node `engine-strict` config is set to true, whenever the
    installation environment does not meet this requirement.
    
    Background:
    
    `css-loader` depends on `postcss` that uses native promises. Promises
    where introduced in node version 0.12.0. So `css-loader`
    *transitively inherits* this dependency.
    
    Related to #144.
    dreyescat committed Jan 11, 2016
    Copy the full SHA
    3d9dda4 View commit details

Commits on Mar 10, 2016

  1. add documentation for camelCase query parameter

    Ian McNally committed Mar 10, 2016
    Copy the full SHA
    68f5a69 View commit details

Commits on Apr 10, 2016

  1. Merge pull request #242 from ianmcnally/master

    add documentation for camelCase query parameter
    sokra committed Apr 10, 2016
    Copy the full SHA
    2764541 View commit details
  2. Merge pull request #218 from dreyescat/master

    Specify node engine minimum version
    sokra committed Apr 10, 2016
    Copy the full SHA
    b6acfec View commit details

Commits on Jul 25, 2016

  1. Fixes issue #133

    tadjohnston committed Jul 25, 2016
    Copy the full SHA
    49764c2 View commit details

Commits on Jul 26, 2016

  1. Merge pull request #307 from tadjohnston/master

    Fixes issue #133 with unicode strings
    sokra authored Jul 26, 2016
    Copy the full SHA
    9d2941b View commit details

Commits on Aug 5, 2016

  1. Update README.md

    Updating a sentence in the README.md file due to grammatical error and didn't add any value to the user.
    mrsteele authored Aug 5, 2016
    Copy the full SHA
    e789661 View commit details
  2. Update README.md

    Resolving an issue introduced in previous commit.
    mrsteele authored Aug 5, 2016
    Copy the full SHA
    c2e5a9e View commit details

Commits on Aug 15, 2016

  1. Copy the full SHA
    5a003e0 View commit details

Commits on Aug 16, 2016

  1. Copy the full SHA
    9343ebb View commit details
  2. Merge pull request #319 from andreypopp/concise-error-message

    Consistent format for syntax errors.
    sokra authored Aug 16, 2016
    Copy the full SHA
    237873c View commit details

Commits on Aug 18, 2016

  1. Merge pull request #314 from mrsteele/master

    Resolving grammatical issue in README.md file
    sokra authored Aug 18, 2016
    Copy the full SHA
    068cec3 View commit details

Commits on Aug 24, 2016

  1. 0.24.0

    sokra committed Aug 24, 2016
    5
    Copy the full SHA
    278d6cc View commit details

Commits on Sep 2, 2016

  1. Prefix hashes with underscores based on CSS spec

    According to the CSS spec, identifiers cannot
    start with a digit, two hyphens, or a hyphen
    followed by a digit.
    markdalgleish committed Sep 2, 2016
    Copy the full SHA
    da27c07 View commit details
  2. Merge pull request #324 from markdalgleish/prefix-hashes-with-undersc…

    …ores-based-on-css-spec
    
    Prefix hashes with underscores based on CSS spec
    sokra authored Sep 2, 2016
    Copy the full SHA
    5a9c1d1 View commit details

Commits on Sep 5, 2016

  1. 0.25.0

    sokra committed Sep 5, 2016
    Copy the full SHA
    22f6621 View commit details

Commits on Oct 20, 2016

  1. Disable Autoprefixer in cssnano (#361)

    ai authored and SpaceK33z committed Oct 20, 2016
    2
    Copy the full SHA
    008e6fd View commit details

Commits on Nov 17, 2016

  1. Copy the full SHA
    8cd1069 View commit details
  2. update deps

    SpaceK33z committed Nov 17, 2016
    Copy the full SHA
    2cd0cf7 View commit details
  3. 0.26.0

    SpaceK33z committed Nov 17, 2016
    Copy the full SHA
    9497d74 View commit details
  4. Update README.md

    Fixes #227
    SpaceK33z authored Nov 17, 2016
    Copy the full SHA
    9df4467 View commit details

Commits on Nov 18, 2016

  1. add issue templates

    SpaceK33z committed Nov 18, 2016
    Copy the full SHA
    564f521 View commit details
  2. expose getLocalIdent (#357)

    * expose getLocalIdent
    
    * add test & docs
    longlho authored and sokra committed Nov 18, 2016
    Copy the full SHA
    46ebca3 View commit details

Commits on Nov 25, 2016

  1. Copy the full SHA
    85a2156 View commit details

Commits on Dec 2, 2016

  1. 0.26.1

    sokra committed Dec 2, 2016
    Copy the full SHA
    5b856b2 View commit details

Commits on Dec 7, 2016

  1. Add license file

    SpaceK33z authored Dec 7, 2016
    Copy the full SHA
    a38e254 View commit details
  2. Bump source-map-list to 0.1.7 (#383)

    gaearon authored and SpaceK33z committed Dec 7, 2016
    Copy the full SHA
    851a22b View commit details
  3. Copy the full SHA
    5735e5d View commit details

Commits on Dec 8, 2016

  1. Add files to package.json. (#388)

    Move from `.npmignore` to `files` field in `package.json`.
    wtgtybhertgeghgtwtg authored and SpaceK33z committed Dec 8, 2016
    Copy the full SHA
    08e9d47 View commit details

Commits on Jan 11, 2017

  1. Merge pull request #380 from michael-ciniawsky/readme

    docs(README): refactor for webpack v2
    TheLarkInn authored Jan 11, 2017
    Copy the full SHA
    9508990 View commit details

Commits on Jan 21, 2017

  1. Copy the full SHA
    4bd7130 View commit details
  2. Merge pull request #407 from christianvuerings/readme-minimize

    README - fix default for minimize
    TheLarkInn authored Jan 21, 2017
    Copy the full SHA
    e54549e View commit details
  3. ci(Travis): updates Travis validations

     - Validate against current node versions
     - Test against both Webpack 1.4.x & 2.2.x
     - Remove deprecated .eslintrc
     - .eslint.yml generated from current code ( no changes )
     - add yarn lock file set to binary in git
     - ignores console for eslint in test helpers
    joshwiens committed Jan 21, 2017
    Copy the full SHA
    2fd0c78 View commit details
  4. Merge pull request #408 from d3viant0ne/d3viant0ne-TravisValidations

    ci(Travis): updates Travis validations
    TheLarkInn authored Jan 21, 2017
    Copy the full SHA
    793390a View commit details

Commits on Jan 23, 2017

  1. Fix Maintainer section look (#409)

    montogeek authored and SpaceK33z committed Jan 23, 2017
    Copy the full SHA
    199897f View commit details

Commits on Feb 21, 2017

  1. Copy the full SHA
    7c45e94 View commit details

Commits on Feb 24, 2017

  1. Copy the full SHA
    f8cdaca View commit details
  2. Merge pull request #428 from helloyou2012/master

    fix deprecation warning (loader-utils)
    bebraw authored Feb 24, 2017
    Copy the full SHA
    7732614 View commit details
  3. Copy the full SHA
    d7317ca View commit details

Commits on Mar 9, 2017

  1. Copy the full SHA
    c769ac3 View commit details
  2. Copy the full SHA
    3362b10 View commit details
  3. docs(readme): add intro to usage

    simon04 authored and joshwiens committed Mar 9, 2017
    Copy the full SHA
    d4ac0e0 View commit details
  4. Copy the full SHA
    a2b85d7 View commit details
  5. chore(release): 0.26.4

    joshwiens committed Mar 9, 2017
    Copy the full SHA
    24aac10 View commit details
  6. Copy the full SHA
    2303df4 View commit details
  7. docs: README.md line endings

    joscha authored and joshwiens committed Mar 9, 2017
    Copy the full SHA
    d7308bc View commit details
  8. fix: minimizeOptions should be query.minimize!

    It's a mistake according to the doc.
    
    Init `minimizeOptions` should be `query.minimize` rather than just query.
    
    https://github.com/webpack/css-loader#minification
    JounQin authored and joshwiens committed Mar 9, 2017
    Copy the full SHA
    16c0858 View commit details
  9. test: fix test error

    JounQin authored and joshwiens committed Mar 9, 2017
    Copy the full SHA
    ac7ab1f View commit details
  10. feat: Include the sourceMappingURL & sourceURL when toString()

    This feature is useful when you need to pass the result of css-loader to angular: call to require('to-string-loader!css-loader? sourceMap!sass-loader?sourceMap!./ test.scss') will include source mapping, And finally assigned to the component's styles metadata
    Zhicheng Wang authored and joshwiens committed Mar 9, 2017
    Copy the full SHA
    6da7e90 View commit details

Commits on Mar 10, 2017

  1. chore(release): add standard-version & update travis build (#446)

    * chore(release): add standard-version & scripts
    
    * docs(readme): update coverage badge
    
    * ci(travis): fix minimum nodejs version
    joshwiens authored Mar 10, 2017
    Copy the full SHA
    17faa31 View commit details
Showing with 29,645 additions and 1,740 deletions.
  1. +145 βˆ’0 .circleci/config.yml
  2. +13 βˆ’0 .editorconfig
  3. +3 βˆ’0 .eslintignore
  4. +0 βˆ’10 .eslintrc
  5. +11 βˆ’0 .eslintrc.js
  6. +3 βˆ’0 .gitattributes
  7. +6 βˆ’0 .github/CODEOWNERS
  8. +124 βˆ’0 .github/CONTRIBUTING.md
  9. +16 βˆ’0 .github/ISSUE_TEMPLATE.md
  10. +51 βˆ’0 .github/ISSUE_TEMPLATE/BUG.md
  11. +30 βˆ’0 .github/ISSUE_TEMPLATE/DOCS.md
  12. +28 βˆ’0 .github/ISSUE_TEMPLATE/FEATURE.md
  13. +33 βˆ’0 .github/ISSUE_TEMPLATE/MODIFICATION.md
  14. +9 βˆ’0 .github/ISSUE_TEMPLATE/SUPPORT.md
  15. +35 βˆ’0 .github/PULL_REQUEST_TEMPLATE.md
  16. +18 βˆ’2 .gitignore
  17. +0 βˆ’3 .npmignore
  18. +5 βˆ’0 .prettierrc
  19. +0 βˆ’12 .travis.yml
  20. +231 βˆ’0 CHANGELOG.md
  21. +20 βˆ’0 LICENSE
  22. +677 βˆ’238 README.md
  23. +42 βˆ’0 appveyor.yml
  24. +0 βˆ’5 index.js
  25. +0 βˆ’29 lib/compile-exports.js
  26. +0 βˆ’50 lib/css-base.js
  27. +0 βˆ’14 lib/getImportPrefix.js
  28. +0 βˆ’16 lib/getLocalIdent.js
  29. +0 βˆ’124 lib/loader.js
  30. +0 βˆ’46 lib/localsLoader.js
  31. +0 βˆ’213 lib/processCss.js
  32. +0 βˆ’5 locals.js
  33. +12,782 βˆ’0 package-lock.json
  34. +109 βˆ’27 package.json
  35. +28 βˆ’0 src/CssSyntaxError.js
  36. +20 βˆ’0 src/Warning.js
  37. +3 βˆ’0 src/cjs.js
  38. +354 βˆ’0 src/index.js
  39. +86 βˆ’0 src/options.json
  40. +5 βˆ’0 src/plugins/index.js
  41. +94 βˆ’0 src/plugins/postcss-icss-parser.js
  42. +108 βˆ’0 src/plugins/postcss-import-parser.js
  43. +120 βˆ’0 src/plugins/postcss-url-parser.js
  44. +82 βˆ’0 src/runtime/api.js
  45. +17 βˆ’0 src/runtime/url-escape.js
  46. +84 βˆ’0 src/utils.js
  47. +202 βˆ’0 test/__snapshots__/camelCase-option.test.js.snap
  48. +115 βˆ’0 test/__snapshots__/errors.test.js.snap
  49. +120 βˆ’0 test/__snapshots__/getLocalIdent-option.test.js.snap
  50. +227 βˆ’0 test/__snapshots__/icss.test.js.snap
  51. +1,775 βˆ’0 test/__snapshots__/import-option.test.js.snap
  52. +191 βˆ’0 test/__snapshots__/importLoaders-option.test.js.snap
  53. +1,202 βˆ’0 test/__snapshots__/loader.test.js.snap
  54. +302 βˆ’0 test/__snapshots__/localIdentName-option.test.js.snap
  55. +5,380 βˆ’0 test/__snapshots__/modules-option.test.js.snap
  56. +255 βˆ’0 test/__snapshots__/sourceMap-option.test.js.snap
  57. +1,983 βˆ’0 test/__snapshots__/url-option.test.js.snap
  58. +101 βˆ’0 test/camelCase-option.test.js
  59. +0 βˆ’24 test/camelCaseTest.js
  60. +8 βˆ’0 test/cjs.test.js
  61. +0 βˆ’37 test/cssBaseTest.js
  62. +89 βˆ’0 test/errors.test.js
  63. +113 βˆ’0 test/fixtures/basic.css
  64. +4 βˆ’0 test/fixtures/basic.js
  65. 0 test/fixtures/empty.css
  66. +7 βˆ’0 test/fixtures/icss/tests-cases/duplicate-export-in-multiple-export/source.css
  67. +4 βˆ’0 test/fixtures/icss/tests-cases/duplicate-export/source.css
  68. +1 βˆ’0 test/fixtures/icss/tests-cases/empty-export/source.css
  69. +1 βˆ’0 test/fixtures/icss/tests-cases/empty-import/source.css
  70. +4 βˆ’0 test/fixtures/icss/tests-cases/export-reserved-keywords/source.css
  71. +3 βˆ’0 test/fixtures/icss/tests-cases/export/source.css
  72. +14 βˆ’0 test/fixtures/icss/tests-cases/import-reserved-keywords/source.css
  73. +4 βˆ’0 test/fixtures/icss/tests-cases/import-reserved-keywords/vars.css
  74. +11 βˆ’0 test/fixtures/icss/tests-cases/import/source.css
  75. +3 βˆ’0 test/fixtures/icss/tests-cases/import/vars.css
  76. +7 βˆ’0 test/fixtures/icss/tests-cases/multiple-export/source.css
  77. +7 βˆ’0 test/fixtures/icss/tests-cases/multiple-keys-values-in-export/source.css
  78. +3 βˆ’0 test/fixtures/import/alias.css
  79. BIN test/fixtures/import/img.png
  80. +67 βˆ’0 test/fixtures/import/import.css
  81. +3 βˆ’0 test/fixtures/import/node_modules/package/test.css
  82. +3 βˆ’0 test/fixtures/import/node_modules/package/tilde.css
  83. +3 βˆ’0 test/fixtures/import/other-query.css
  84. +3 βˆ’0 test/fixtures/import/query.css
  85. +3 βˆ’0 test/fixtures/import/relative.css
  86. +5 βˆ’0 test/fixtures/import/test-media.css
  87. +3 βˆ’0 test/fixtures/import/test-nested-media.css
  88. +3 βˆ’0 test/fixtures/import/test-other.css
  89. +3 βˆ’0 test/fixtures/import/test.css
  90. +3 βˆ’0 test/fixtures/import/top-relative.css
  91. +3 βˆ’0 test/fixtures/import/url.css
  92. +3 βˆ’0 test/fixtures/imported.css
  93. +3 βˆ’0 test/fixtures/invalid.css
  94. +3 βˆ’0 test/fixtures/modules/alias.css
  95. +20 βˆ’0 test/fixtures/modules/camelCase.css
  96. +58 βˆ’0 test/fixtures/modules/composes.css
  97. +7 βˆ’0 test/fixtures/modules/getLocalIdent.css
  98. +3 βˆ’0 test/fixtures/modules/imported-simple.css
  99. +1 βˆ’0 test/fixtures/modules/issue-286/dep.css
  100. +1 βˆ’0 test/fixtures/modules/issue-286/source.css
  101. +3 βˆ’0 test/fixtures/modules/issue-636/foo.scss
  102. +3 βˆ’0 test/fixtures/modules/issue-636/source.scss
  103. +27 βˆ’0 test/fixtures/modules/localIdentName.css
  104. +3 βˆ’0 test/fixtures/modules/node_modules/package/style.css
  105. +3 βˆ’0 test/fixtures/modules/relative.css
  106. +1 βˆ’0 test/fixtures/modules/something.css
  107. +3 βˆ’0 test/fixtures/modules/test-other.css
  108. 0 test/{moduleTestCases β†’ fixtures/modules/tests-cases}/class-names/source.css
  109. +1 βˆ’0 test/fixtures/modules/tests-cases/comment-in-local/source.css
  110. BIN test/fixtures/modules/tests-cases/comments/img.png
  111. +2 βˆ’2 test/{moduleTestCases β†’ fixtures/modules/tests-cases}/comments/source.css
  112. +11 βˆ’0 test/fixtures/modules/tests-cases/composes-1/file.css
  113. +3 βˆ’0 test/fixtures/modules/tests-cases/composes-1/source.css
  114. +11 βˆ’0 test/fixtures/modules/tests-cases/composes-2/file.css
  115. +3 βˆ’0 test/fixtures/modules/tests-cases/composes-2/source.css
  116. +3 βˆ’0 test/fixtures/modules/tests-cases/composes-multiple/file1.css
  117. +3 βˆ’0 test/fixtures/modules/tests-cases/composes-multiple/file2.css
  118. +4 βˆ’0 test/fixtures/modules/tests-cases/composes-multiple/source.css
  119. +3 βˆ’0 test/fixtures/modules/tests-cases/composes-with-importing/file.css
  120. +3 βˆ’0 test/fixtures/modules/tests-cases/composes-with-importing/source.css
  121. +2 βˆ’0 test/fixtures/modules/tests-cases/composes/source.css
  122. +5 βˆ’0 test/fixtures/modules/tests-cases/declaration-value/source.css
  123. BIN test/fixtures/modules/tests-cases/issue-589/img.png
  124. +4 βˆ’0 test/fixtures/modules/tests-cases/issue-589/source.css
  125. 0 test/{moduleTestCases β†’ fixtures/modules/tests-cases}/keyframes-and-animation/source.css
  126. 0 test/{moduleTestCases β†’ fixtures/modules/tests-cases}/leak-scope/source.css
  127. +4 βˆ’0 test/fixtures/modules/tests-cases/local-2/source.css
  128. +7 βˆ’0 test/fixtures/modules/tests-cases/local-and-composes/source.css
  129. +3 βˆ’0 test/fixtures/modules/tests-cases/local-with-string/source.css
  130. +7 βˆ’0 test/fixtures/modules/tests-cases/local/source.css
  131. +1 βˆ’0 test/fixtures/modules/tests-cases/media-2/file.css
  132. +6 βˆ’0 test/fixtures/modules/tests-cases/media-2/source.css
  133. +7 βˆ’0 test/fixtures/modules/tests-cases/media/source.css
  134. +2 βˆ’0 test/fixtures/modules/tests-cases/mode-switching/source.css
  135. 0 test/{moduleTestCases β†’ fixtures/modules/tests-cases}/simple/source.css
  136. BIN test/fixtures/modules/tests-cases/urls/img img.png
  137. BIN test/fixtures/modules/tests-cases/urls/img.png
  138. +14 βˆ’0 test/fixtures/modules/tests-cases/urls/source.css
  139. +2 βˆ’0 test/fixtures/modules/tests-cases/values-1/source.css
  140. +2 βˆ’0 test/fixtures/modules/tests-cases/values-2/source.css
  141. +1 βˆ’0 test/fixtures/modules/tests-cases/values-3/file.css
  142. +2 βˆ’0 test/fixtures/modules/tests-cases/values-3/source.css
  143. +1 βˆ’0 test/fixtures/modules/tests-cases/values-4/file1.css
  144. +1 βˆ’0 test/fixtures/modules/tests-cases/values-4/file2.css
  145. +3 βˆ’0 test/fixtures/modules/tests-cases/values-4/source.css
  146. +1 βˆ’0 test/fixtures/modules/tests-cases/values-5/file1.css
  147. +3 βˆ’0 test/fixtures/modules/tests-cases/values-5/source.css
  148. +1 βˆ’0 test/fixtures/modules/tests-cases/values-6/file1.css
  149. +3 βˆ’0 test/fixtures/modules/tests-cases/values-6/source.css
  150. +1 βˆ’0 test/fixtures/modules/tests-cases/values-7/file1.css
  151. +3 βˆ’0 test/fixtures/modules/tests-cases/values-7/source.css
  152. +6 βˆ’0 test/fixtures/modules/tests-cases/values-8/source.css
  153. +29 βˆ’0 test/fixtures/modules/tests-cases/values-9/source.css
  154. 0 test/{moduleTestCases β†’ fixtures/modules/tests-cases}/values/source.css
  155. +3 βˆ’0 test/fixtures/modules/top-relative.css
  156. +2 βˆ’0 test/fixtures/modules/values.css
  157. +4 βˆ’0 test/fixtures/nested-import/imported.css
  158. +6 βˆ’0 test/fixtures/nested-import/source.css
  159. BIN test/fixtures/postcss-present-env/img1x.png
  160. BIN test/fixtures/postcss-present-env/img2x.png
  161. +39 βˆ’0 test/fixtures/postcss-present-env/source.css
  162. +7 βˆ’0 test/fixtures/scss/source.scss
  163. +5 βˆ’0 test/fixtures/source-map-loader.js
  164. +3 βˆ’0 test/fixtures/source-map/basic.css
  165. 0 test/fixtures/url/font with spaces.eot
  166. 0 test/fixtures/url/font.eot
  167. 0 test/fixtures/url/font.svg
  168. 0 test/fixtures/url/font.woff
  169. 0 test/fixtures/url/font.woff2
  170. BIN test/fixtures/url/img img.png
  171. BIN test/fixtures/url/img-from-imported.png
  172. BIN test/fixtures/url/img-simple.png
  173. BIN test/fixtures/url/img.png
  174. BIN test/fixtures/url/img1x.png
  175. BIN test/fixtures/url/img2x.png
  176. +3 βˆ’0 test/fixtures/url/imported.css
  177. BIN test/fixtures/url/nested/img.png
  178. 0 test/fixtures/url/node_modules/package/font.ttf
  179. BIN test/fixtures/url/node_modules/package/img.png
  180. BIN test/fixtures/url/other-img.png
  181. +207 βˆ’0 test/fixtures/url/url.css
  182. +107 βˆ’0 test/getLocalIdent-option.test.js
  183. +229 βˆ’124 test/helpers.js
  184. +24 βˆ’0 test/icss.test.js
  185. +84 βˆ’0 test/import-option.test.js
  186. +106 βˆ’0 test/importLoaders-option.test.js
  187. +0 βˆ’42 test/importTest.js
  188. +167 βˆ’0 test/loader.test.js
  189. +120 βˆ’0 test/localIdentName-option.test.js
  190. +0 βˆ’205 test/localTest.js
  191. +0 βˆ’52 test/localsTest.js
  192. +0 βˆ’17 test/moduleMinimizeTest.js
  193. +0 βˆ’3 test/moduleMinimizeTestCases/keyframes-and-animation/expected.css
  194. +0 βˆ’28 test/moduleMinimizeTestCases/keyframes-and-animation/source.css
  195. +0 βˆ’17 test/moduleTest.js
  196. +0 βˆ’3 test/moduleTestCases/class-names/expected.css
  197. +0 βˆ’11 test/moduleTestCases/comments/expected.css
  198. +0 βˆ’48 test/moduleTestCases/keyframes-and-animation/expected.css
  199. +0 βˆ’37 test/moduleTestCases/leak-scope/expected.css
  200. +0 βˆ’11 test/moduleTestCases/simple/expected.css
  201. +0 βˆ’12 test/moduleTestCases/urls/expected.css
  202. +0 βˆ’12 test/moduleTestCases/urls/source.css
  203. +0 βˆ’5 test/moduleTestCases/values/expected.css
  204. +120 βˆ’0 test/modules-option.test.js
  205. +19 βˆ’0 test/runtime/__snapshots__/api.test.js.snap
  206. +19 βˆ’0 test/runtime/__snapshots__/url-escape.test.js.snap
  207. +93 βˆ’0 test/runtime/api.test.js
  208. +15 βˆ’0 test/runtime/url-escape.test.js
  209. +0 βˆ’22 test/simpleTest.js
  210. +239 βˆ’0 test/sourceMap-option.test.js
  211. +0 βˆ’64 test/sourceMapTest.js
  212. +84 βˆ’0 test/url-option.test.js
  213. +0 βˆ’101 test/urlTest.js
  214. +0 βˆ’69 test/valuesTest.js
145 changes: 145 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
unit_tests: &unit_tests
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Install Latest NPM.
# npm@3 is buggy
command: if [[ $(npm -v | cut -c -1) > 3 ]] ; then npm i -g npm@latest; else echo "Skip npm updating"; fi
- run:
name: NPM Install.
command: npm ci || npm i
- run:
name: Run Test.
command: npm run ci:test
canary_tests: &canary_tests
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Install Latest NPM.
command: npm i -g npm@latest
- run:
name: NPM Install.
command: npm ci
- run:
name: Install Webpack Canary.
command: npm i --no-save webpack@next
- run:
name: Run Test.
command: if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then printf "Next is older than Latest - Skipping Canary Suite"; else npm run ci:test; fi

version: 2
jobs:
dependency_cache:
docker:
- image: webpackcontrib/circleci-node-base:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Install Latest NPM.
command: npm i -g npm@latest
- run:
name: NPM Install.
command: npm ci
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
node6-latest:
docker:
- image: webpackcontrib/circleci-node6:latest
<<: *unit_tests
node8-latest:
docker:
- image: webpackcontrib/circleci-node8:latest
<<: *unit_tests
node10-latest:
docker:
- image: webpackcontrib/circleci-node10:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Install Latest NPM.
command: npm i -g npm@latest
- run:
name: NPM Install.
command: npm ci
- run:
name: Run Test.
command: npm run ci:coverage
- run:
name: Submit coverage data to codecov.
command: bash <(curl -s https://codecov.io/bash)
when: on_success
node10-canary:
docker:
- image: webpackcontrib/circleci-node10:latest
<<: *canary_tests
analysis:
docker:
- image: webpackcontrib/circleci-node-base:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Install Latest NPM.
command: npm i -g npm@latest
- run:
name: NPM Install.
command: npm ci
- run:
name: Run linting.
command: npm run lint
- run:
name: Run NPM Audit.
command: npm run security
- run:
name: Validate Commit Messages.
command: npm run ci:lint:commits

workflows:
version: 2
test:
jobs:
- dependency_cache
- analysis:
requires:
- dependency_cache
filters:
tags:
only: /.*/
- node6-latest:
requires:
- dependency_cache
filters:
tags:
only: /.*/
- node8-latest:
requires:
- analysis
- node6-latest
filters:
tags:
only: /.*/
- node10-latest:
requires:
- analysis
- node6-latest
filters:
tags:
only: /.*/
- node10-canary:
requires:
- analysis
- node6-latest
filters:
tags:
only: /.*/
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules
/src/runtime
/dist
10 changes: 0 additions & 10 deletions .eslintrc

This file was deleted.

11 changes: 11 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
root: true,
plugins: ['prettier'],
extends: ['@webpack-contrib/eslint-config-webpack'],
rules: {
'prettier/prettier': [
'error',
{ singleQuote: true, trailingComma: 'es5', arrowParens: 'always' },
],
},
};
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package-lock.json -diff
* text=auto
bin/* eol=lf
6 changes: 6 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# These are the default owners for everything in
# webpack-contrib
@webpack-contrib/org-maintainers

# Add repository specific users / groups
# below here for libs that are not maintained by the org.
124 changes: 124 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
## Contributing in @webpack-contrib

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)

### <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).
The issue tracker is for bug reports and feature discussions.

### <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.

We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs, we ask that you to provide a minimal reproduction scenario (github repo or failing test case). Having a live, reproducible scenario gives us a wealth of important information without going back & forth to you with additional questions like:

- version of Webpack used
- version of the loader / plugin you are creating a bug report for
- the use-case that fails

A minimal reproduce scenario allows us to quickly confirm a bug (or point out config problems) as well as confirm that we are fixing the right problem.

We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it.

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?

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.

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

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

- Search Github for an open or closed PR that relates to your submission. You don't want to duplicate effort.
- Commit your changes using a descriptive commit message that follows our [commit message conventions](#commit). Adherence to these conventions is necessary because release notes are automatically generated from these messages.
- 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

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**:

```
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
```

The **header** is mandatory and the **scope** of the header is optional.

Any line of the commit message cannot be longer 100 characters! This allows the message to be easier
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:
```
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.
In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.

#### 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
The scope is subjective & depends on the `type` see above. A good example would be a change to a particular class / module.

#### 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

#### 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
The footer should contain any information about **Breaking Changes** and is also the place to
reference GitHub issues that this commit **Closes**.

**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.

Example

```
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
```
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!--
πŸ‘‰πŸ½ Need support, advice, or help? Don't open an issue!
Head to StackOverflow or https://gitter.im/webpack/webpack.
Hey there!
You arrived at this template because you felt none of the other options
matched the kind of issue you'd like to report. Please use this opportunity to
tell us about your particular type of issue so we can try to accomodate
similar issues in the future.
PLEASE do note, if you're using this to report an issue already covered by the
existing template types, your issue may be closed as invalid. Our issue
templates contain fields that help us help you, and without that important
info, we might as well be ice-skating uphill, carrying a wooly mammoth.
-->
51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: πŸ› Bug Report
about: Something went awry and you'd like to tell us about it.

---

<!--
Issues are so πŸ”₯
If you remove or skip this template, you'll make the 🐼 sad and the mighty god
of Github will appear and pile-drive the close button from a great height
while making animal noises.
πŸ‘‰πŸ½ Need support, advice, or help? Don't open an issue!
Head to StackOverflow or https://gitter.im/webpack/webpack.
-->

* Operating System:
* Node Version:
* NPM Version:
* webpack Version:
* css-loader Version:

### Expected Behavior

<!-- Remove this section if not reporting a bug or modification request. -->

### Actual Behavior

<!-- Remove this section if not reporting a bug or modification request. -->

### Code

```js
// webpack.config.js
// If your bitchin' code blocks are over 20 lines, please paste a link to a gist
// (https://gist.github.com).
```

```js
// additional code, HEY YO remove this block if you don't need it
```

### How Do We Reproduce?

<!--
Remove this section if not reporting a bug.
If your webpack config is over 50 lines long, please provide a URL to a repo
for your beefy πŸ– app that we can use to reproduce.
-->
Loading