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: v3.2.0
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: v6.7.3
Choose a head ref

Commits on Nov 21, 2019

  1. refactor: code

    alexander-akait committed Nov 21, 2019
    Copy the full SHA
    cb434bf View commit details
  2. Copy the full SHA
    94378b7 View commit details

Commits on Nov 28, 2019

  1. Copy the full SHA
    0961304 View commit details

Commits on Nov 29, 2019

  1. docs(readme): update default values for options (#1000)

    JIENIU$ authored and evilebottnawi committed Nov 29, 2019
    Copy the full SHA
    e21ab00 View commit details

Commits on Dec 2, 2019

  1. Copy the full SHA
    8f4d6f5 View commit details
  2. Copy the full SHA
    77e705c View commit details

Commits on Dec 3, 2019

  1. Copy the full SHA
    e662b61 View commit details

Commits on Dec 5, 2019

  1. Copy the full SHA
    80e9662 View commit details

Commits on Dec 6, 2019

  1. Copy the full SHA
    6769783 View commit details

Commits on Dec 9, 2019

  1. Copy the full SHA
    6177af5 View commit details
  2. Copy the full SHA
    889807a View commit details

Commits on Dec 10, 2019

  1. refactor: code (#1009)

    evilebottnawi authored Dec 10, 2019
    Copy the full SHA
    880344b View commit details
  2. Copy the full SHA
    b119d02 View commit details
  3. Copy the full SHA
    b59c4f2 View commit details
  4. Copy the full SHA
    8e8ab18 View commit details
  5. Copy the full SHA
    60c65e0 View commit details
  6. Copy the full SHA
    e091d27 View commit details

Commits on Dec 11, 2019

  1. Copy the full SHA
    30a9269 View commit details
  2. Copy the full SHA
    c80c39f View commit details

Commits on Dec 12, 2019

  1. refactor: code (#1017)

    evilebottnawi authored Dec 12, 2019
    Copy the full SHA
    3b12c87 View commit details
  2. chore(release): 3.3.1

    alexander-akait committed Dec 12, 2019
    Copy the full SHA
    cbca64d View commit details
  3. Copy the full SHA
    65450d9 View commit details

Commits on Dec 13, 2019

  1. Copy the full SHA
    ee40727 View commit details

Commits on Dec 16, 2019

  1. test: refactor

    * test: refactor
    
    * test: refactor url option test
    
    * test: refactor onlyLocals option test
    
    * test: refactor import option test
    
    * test: refactor localsConvention option test
    
    * test: refactor
    
    * test: refactor icss
    
    * test: refactor importLoaders option
    
    * test: refactor loader code
    
    * test: refactor modules code
    
    * test: refactor sourceMap code
    
    * test: refactor
    
    * test: refactor
    
    * test: refactor
    
    * test: refactor
    
    * test: refactor
    
    * test: refactor
    
    * test: refactor
    
    * test: refactor
    
    * test: refactor
    
    * test: refactor
    
    * test: refactor
    
    * test: refactor
    
    * test: refactor
    
    * test: refactor
    evilebottnawi authored Dec 16, 2019
    Copy the full SHA
    ea26c56 View commit details
  2. test: webpack5 (#1023)

    * test: webpack@5
    
    * test: webpack@5
    
    * test: webpack@5
    
    * test: webpack@5
    
    * test: webpack@5
    
    * test: webpack@5
    
    * test: webpack@5
    
    * test: webpack@5
    evilebottnawi authored Dec 16, 2019
    Copy the full SHA
    0016e49 View commit details
  3. refactor: code

    evilebottnawi authored Dec 16, 2019
    Copy the full SHA
    23bc1e9 View commit details

Commits on Dec 17, 2019

  1. Copy the full SHA
    d358cdb View commit details
  2. Test more (#1024)

    * test: more
    
    * test: more
    
    * test: more
    
    * test: more
    
    * test: more
    evilebottnawi authored Dec 17, 2019
    Copy the full SHA
    796fe28 View commit details
  3. Copy the full SHA
    63a74b2 View commit details
  4. chore(release): 3.4.0

    alexander-akait committed Dec 17, 2019
    Copy the full SHA
    b95a779 View commit details

Commits on Jan 3, 2020

  1. Copy the full SHA
    b60e62a View commit details
  2. Copy the full SHA
    ded2a79 View commit details
  3. Copy the full SHA
    7c9f47b View commit details

Commits on Jan 10, 2020

  1. Copy the full SHA
    df79602 View commit details
  2. chore(release): 3.4.2

    alexander-akait committed Jan 10, 2020
    Copy the full SHA
    229d36a View commit details

Commits on Feb 5, 2020

  1. Copy the full SHA
    14c4faa View commit details

Commits on Mar 19, 2020

  1. chore(deps): update

    evilebottnawi authored Mar 19, 2020
    Copy the full SHA
    bc63911 View commit details

Commits on Mar 20, 2020

  1. Copy the full SHA
    f5f21ea View commit details
  2. Copy the full SHA
    fe0e6c9 View commit details

Commits on Mar 23, 2020

  1. chore(deps): update

    alexander-akait committed Mar 23, 2020
    Copy the full SHA
    3bc3a41 View commit details
  2. refactor: code

    evilebottnawi authored Mar 23, 2020
    Copy the full SHA
    1b29b28 View commit details

Commits on Mar 25, 2020

  1. refactor: code (#1059)

    evilebottnawi authored Mar 25, 2020
    Copy the full SHA
    431f620 View commit details

Commits on Apr 6, 2020

  1. Copy the full SHA
    0d8ac3b View commit details
  2. chore(deps): update

    alexander-akait committed Apr 6, 2020
    Copy the full SHA
    4f158cd View commit details
  3. Copy the full SHA
    519e5f4 View commit details
  4. Copy the full SHA
    c673cf4 View commit details
  5. docs: improve

    evilebottnawi authored Apr 6, 2020
    Copy the full SHA
    fcec43b View commit details
  6. Copy the full SHA
    aeeacb8 View commit details

Commits on Apr 7, 2020

  1. Copy the full SHA
    866b84a View commit details
  2. Copy the full SHA
    239e43d View commit details
Showing 438 changed files with 67,454 additions and 22,133 deletions.
51 changes: 51 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"version": "0.2",
"language": "en,en-gb",
"words": [
"pures",
"icss",
"styl",
"nosources",
"unknwon",
"mycss",
"memfs",
"Koppers",
"sokra",
"plusplus",
"localident",
"fullhash",
"requestify",
"XSSI",
"Requestable",
"requestable",
"requestify",
"nourl",
"stylesheet",
"classname",
"EACE",
"UAAU",
"AACZ",
"MCEP",
"stringifier",
"Zvby",
"uncnoun",
"bazzy",
"svars",
"concat",
"camelcase",
"Brotli",
"Contex",
"vspace",
"commitlint"
],

"ignorePaths": [
"CHANGELOG.md",
"package.json",
"dist/**",
"**/__snapshots__/**",
"package-lock.json",
"**/*.css",
"**/fonts/**"
]
}
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
17 changes: 16 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
module.exports = {
root: true,
extends: ['@webpack-contrib/eslint-config-webpack', 'prettier'],
extends: ["@webpack-contrib/eslint-config-webpack", "prettier"],
overrides: [
{
files: "src/runtime/**/*",
env: {
browser: true,
},
rules: {
"prefer-destructuring": "off",
"no-param-reassign": "off",
"no-continue": "off",
"no-underscore-dangle": "off",
"no-undefined": "off",
},
},
],
};
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
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
tell us about your particular type of issue so we can try to accommodate
similar issues in the future.
PLEASE do note, if you're using this to report an issue already covered by the
53 changes: 19 additions & 34 deletions .github/ISSUE_TEMPLATE/BUG.md
Original file line number Diff line number Diff line change
@@ -3,48 +3,33 @@ name: 🐛 Bug Report
about: Something went awry and you'd like to tell us about it.
---

<!--
Issues are so 🔥
<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->

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

👉🏽 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. -->
<!-- Please ask questions on discussions, StackOverflow or the webpack Gitter. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Actual Behavior

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

### Code
<!-- Explain exactly how it behave -->

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

```js
// additional code, HEY YO remove this block if you don't need it
```
<!-- "It should work" is not a helpful explanation -->
<!-- Explain exactly how it should behave -->

### How Do We Reproduce?

<!--
Remove this section if not reporting a bug.
<!-- A great way to do this is to provide your configuration via a GitHub repository -->
<!-- The most helpful is a minimal reproduction with instructions on how to reproduce -->
<!-- Repositories with too many files or large `webpack.config.js` files are not suitable -->
<!-- Please only add small code snippets directly into this issue -->
<!-- https://gist.github.com is a good place for longer code snippets -->
<!-- If your issue is caused by a plugin or loader, please create an issue on the loader/plugin repository instead -->

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.
-->
### Please paste the results of `npx webpack-cli info` here, and mention other relevant information
18 changes: 8 additions & 10 deletions .github/ISSUE_TEMPLATE/DOCS.md
Original file line number Diff line number Diff line change
@@ -3,16 +3,8 @@ name: 📚 Documentation
about: Are the docs lacking or missing something? Do they need some new 🔥 hotness? Tell us here.
---

<!--
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.
-->
<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->

Documentation Is:

@@ -25,4 +17,10 @@ Documentation Is:

### Please Explain in Detail...

<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Your Proposal for Changes
26 changes: 10 additions & 16 deletions .github/ISSUE_TEMPLATE/FEATURE.md
Original file line number Diff line number Diff line change
@@ -3,23 +3,17 @@ name: ✨ Feature Request
about: Suggest an idea for this project
---

<!--
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:
<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->

### Feature Proposal

<!-- Please ask questions on discussions, StackOverflow or the webpack Gitter. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Feature Use Case

### Please paste the results of `npx webpack-cli info` here, and mention other relevant information
24 changes: 9 additions & 15 deletions .github/ISSUE_TEMPLATE/MODIFICATION.md
Original file line number Diff line number Diff line change
@@ -3,25 +3,19 @@ name: 🔧 Modification Request
about: Would you like something work differently? Have an alternative approach? This is the template for you.
---

<!--
Issues are so 🔥
<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->

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

- Operating System:
- Node Version:
- NPM Version:
- webpack Version:
- css-loader Version:
<!-- Please ask questions on discussions, StackOverflow or the webpack Gitter. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Expected Behavior / Situation

### Actual Behavior / Situation

### Modification Proposal
### Please paste the results of `npx webpack-cli info` here, and mention other relevant information
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: 🆘 Support, Help, and Advice
about: 👉🏽 Need support, help, or advice? Don't open an issue! Head to StackOverflow or https://gitter.im/webpack/webpack.
about: 👉🏽 Need support, help, or advice? Don't open an issue! Head to https://github.com/webpack/webpack/discussions, StackOverflow or https://gitter.im/webpack/webpack.
---

Hey there! If you need support, help, or advice then this is not the place to ask.
Please visit [StackOverflow](https://stackoverflow.com/questions/tagged/webpack)
Please visit [Discussions](https://github.com/webpack/webpack/discussions), [StackOverflow](https://stackoverflow.com/questions/tagged/webpack)
or [the Webpack Gitter](https://gitter.im/webpack/webpack) instead.
25 changes: 25 additions & 0 deletions .github/workflows/cancel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Cancel
on:
push:
branches:
- master
- next
pull_request:
branches:
- master
- next
permissions:
contents: read

jobs:
cancel:
permissions:
actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
name: Cancel Previous Runs
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: styfle/cancel-workflow-action@0.11.0
with:
workflow_id: nodejs.yml
access_token: ${{ github.token }}
14 changes: 14 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Dependency Review"
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v3
- name: "Dependency Review"
uses: actions/dependency-review-action@v2
90 changes: 90 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: css-loader

on:
push:
branches:
- master
- next
pull_request:
branches:
- master
- next

permissions:
contents: read

jobs:
lint:
name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }}

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Security audit
run: npm run security

- name: Check commit message
uses: wagoid/commitlint-github-action@v5

test:
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [12.x, 14.x, 16.x, 18.x, 19.x]
webpack-version: [latest]

runs-on: ${{ matrix.os }}

steps:
- name: Setup Git
if: matrix.os == 'windows-latest'
run: git config --global core.autocrlf input

- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Install webpack ${{ matrix.webpack-version }}
if: matrix.webpack-version != 'latest'
run: npm i webpack@${{ matrix.webpack-version }}

- name: Run tests for webpack version ${{ matrix.webpack-version }}
run: npm run test:coverage -- --ci

- name: Submit coverage data to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Loading