diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
deleted file mode 100644
index f3206485..00000000
--- a/.github/CODEOWNERS
+++ /dev/null
@@ -1,6 +0,0 @@
-# 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.
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
deleted file mode 100644
index 3dd6cd25..00000000
--- a/.github/CONTRIBUTING.md
+++ /dev/null
@@ -1,156 +0,0 @@
-# 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)
-
-## 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.
-
-## Found an Issue or Bug?
-
-Before you submit an issue, please search the issue tracker, an issue for your problem may already exist, 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 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 reproduction scenario in order to save the maintainers' time and ultimately be able to fix more bugs. We understand that sometimes it might be hard to extract essential bits of code from a larger codebase, but we really need to isolate the problem before we can fix it.
-
-Unfortunately, we are unable to investigate or fix bugs without a minimal reproduction, so if we don't hear back from you, we may have to close an issue that doesn't have enough info to be reproduced.
-
-## Feature Requests?
-
-You can _request_ a new feature by creating an issue on GitHub.
-
-If you would like to _implement_ a new feature yourself, please **first submit an issue** with a proposal to ensure the idea aligns with the goals of the project.
-
-## Pull Request Submission Guidelines
-
-Before you submit your Pull Request (PR) consider the following guidelines:
-
-- Search GitHub for an open or closed PR related to your submission to avoid duplicating effort.
-- Commit your changes using a descriptive commit message that follows our [commit message conventions](#commit). This is important because release notes are automatically generated from these messages.
-- Complete the `Pull Request Template`. Pull requests that ignore the template will not be reviewed.
-- Please sign the `Contributor License Agreement (CLA)` when you open your pull request. We cannot accept your contribution without it. Be sure to sign using the primary email address associated with your local and GitHub account.
-
-## 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**:
-
-```
-():
-
-
-
-
-```
-
-The **header** is mandatory and the **scope** of the header is optional.
-
-No line in the commit message should exceed 100 characters! This makes the message 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 .`, where the hash is the SHA of the commit being reverted.
-
-### Type
-
-Must be one of the following commit types:
-
-- **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 of a scope would be a change to a particular class or module.
-
-### Subject
-
-The subject contains a succinct description of the change:
-
-- use the imperative, present tense: "change" not "changed" or "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" or "changes".
-The body should include the motivation for the change and contrast it with previous behavior.
-
-### Footer
-
-The footer should include any information about **Breaking Changes** and is also the place to reference GitHub issues that this commit **Closes**.
-
-**Breaking Changes** must start with the word `BREAKING CHANGE:` followed by a space or two new lines. The rest of the breaking change details should be provided after 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
-
-```
-
-## Testing Your Pull Request
-
-You may need to test your changes in a real-world project or a dependent module. Thankfully, GitHub provides a means to do this. To add a dependency to the `package.json` of such a project, use the following syntax:
-
-```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 verify whether you have signed the [CLA](https://easycla.lfx.linuxfoundation.org/#/?version=2).
-If it is your first time, it will link you to the right place to sign it.
-However, if the email used in your commits doesnβt match the email associated with your GitHub account, the CLA bot wonβ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.
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
deleted file mode 100644
index 5e7c7b6d..00000000
--- a/.github/FUNDING.yml
+++ /dev/null
@@ -1 +0,0 @@
-open_collective: webpack
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index 3ce9cf32..00000000
--- a/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/.github/ISSUE_TEMPLATE/BUG.md b/.github/ISSUE_TEMPLATE/BUG.md
deleted file mode 100644
index 931d2e2e..00000000
--- a/.github/ISSUE_TEMPLATE/BUG.md
+++ /dev/null
@@ -1,33 +0,0 @@
----
-name: π Bug Report
-about: Something went awry and you'd like to tell us about it.
----
-
-
-
-
-### Bug report
-
-
-
-
-
-
-### Actual Behavior
-
-
-
-### Expected Behavior
-
-
-
-
-### How Do We Reproduce?
-
-
-
-
-
-
-
-### Please paste the results of `npx webpack-cli info` here, and mention other relevant information.
diff --git a/.github/ISSUE_TEMPLATE/DOCS.md b/.github/ISSUE_TEMPLATE/DOCS.md
deleted file mode 100644
index 1f9fad79..00000000
--- a/.github/ISSUE_TEMPLATE/DOCS.md
+++ /dev/null
@@ -1,25 +0,0 @@
----
-name: π Documentation
-about: Are the docs lacking or missing something? Do they need some new π₯ hotness? Tell us here.
----
-
-
-
-
-Documentation is:
-
-
-
-- [ ] Missing
-- [ ] Needed
-- [ ] Confusing
-- [ ] Not Sure?
-
-### Please Explain in Detail...
-
-
-
-
-
-
-### Your Proposal for Changes
diff --git a/.github/ISSUE_TEMPLATE/FEATURE.md b/.github/ISSUE_TEMPLATE/FEATURE.md
deleted file mode 100644
index d1e618fe..00000000
--- a/.github/ISSUE_TEMPLATE/FEATURE.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-name: β¨ Feature Request
-about: Suggest an idea for this project
----
-
-
-
-
-### Feature Proposal
-
-
-
-
-
-
-### Feature Use Case
-
-
-
-### Please paste the results of `npx webpack-cli info` here, and mention other relevant information.
diff --git a/.github/ISSUE_TEMPLATE/MODIFICATION.md b/.github/ISSUE_TEMPLATE/MODIFICATION.md
deleted file mode 100644
index 35602449..00000000
--- a/.github/ISSUE_TEMPLATE/MODIFICATION.md
+++ /dev/null
@@ -1,25 +0,0 @@
----
-name: π§ Modification Request
-about: Want something to work differently? Have an alternative approach? This is the template for you.
----
-
-
-
-
-### Modification Proposal
-
-
-
-
-
-
-
-### Expected Behavior / Situation
-
-
-
-### Actual Behavior / Situation
-
-
-
-### Please paste the results of `npx webpack-cli info` here, and mention other relevant information.
diff --git a/.github/ISSUE_TEMPLATE/SUPPORT.md b/.github/ISSUE_TEMPLATE/SUPPORT.md
deleted file mode 100644
index 65f014ac..00000000
--- a/.github/ISSUE_TEMPLATE/SUPPORT.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-name: π Support, Help, and Advice
-about: ππ½ Need support, help, or advice? Don't open an issue! Head to https://github.com/webpack/webpack/discussions or StackOverflow
----
-
-Hey there! π
-
-If you need support, help, or advice then this is not the right place to ask.
-
-Please visit one of the following instead:
-
-- [GitHub Discussions](https://github.com/webpack/webpack/discussions)
-- [StackOverflow](https://stackoverflow.com/questions/tagged/webpack)
-
-Thanks for understanding!
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 550abc2c..00000000
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-This PR contains a:
-
-- [ ] **bugfix**
-- [ ] new **feature**
-- [ ] **code refactor**
-- [ ] **test update**
-- [ ] **typo fix**
-- [ ] **metadata update**
-
-### Motivation / Use-Case
-
-
-
-### Breaking Changes
-
-
-
-### Additional Info
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml
index 373fe43d..87928c41 100644
--- a/.github/workflows/nodejs.yml
+++ b/.github/workflows/nodejs.yml
@@ -3,11 +3,11 @@ name: css-loader
on:
push:
branches:
- - master
+ - main
- next
pull_request:
branches:
- - master
+ - main
- next
permissions:
diff --git a/README.md b/README.md
index 5ab730dc..7cfa73db 100644
--- a/README.md
+++ b/README.md
@@ -67,7 +67,7 @@ module.exports = {
Finally, run `webpack` using the method you normally use (e.g., via CLI or an npm script).
-If you need to extract CSS into a separate file (i.e. do not store CSS in a JS module), consider using the [recommend example](https://github.com/webpack-contrib/css-loader#recommend).
+If you need to extract CSS into a separate file (i.e. do not store CSS in a JS module), consider using the [recommend example](https://github.com/webpack/css-loader#recommend).
## Options
@@ -98,7 +98,7 @@ Enables or disables handling the CSS functions `url` and `image-set`.
- If set to `false`, `css-loader` will not parse any paths specified in `url` or `image-set`.
- You can also pass a function to control this behavior dynamically based on the asset path.
-As of version [4.0.0](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md#400-2020-07-25), absolute paths are resolved based on the server root.
+As of version [4.0.0](https://github.com/webpack/css-loader/main/CHANGELOG.md#400-2020-07-25), absolute paths are resolved based on the server root.
Examples resolutions:
@@ -357,8 +357,8 @@ Allows you to enable or disable CSS Modules or ICSS and configure them:
- `undefined`: Enables CSS modules for all files matching `/\.module\.\w+$/i.test(filename)` or `/\.icss\.\w+$/i.test(filename)` regexp.
- `true`: Enables CSS modules for all files.
- `false`: Disables CSS Modules for all files.
-- `string`: Disables CSS Modules for all files and set the `mode` option (see [mode](https://github.com/webpack-contrib/css-loader#mode) for details).
-- `object`: Enables CSS modules for all files unless the `modules.auto` option is provided. otherwise the `modules.auto` option will determine whether if it is CSS Modules or not (see [auto](https://github.com/webpack-contrib/css-loader#auto) for more details).
+- `string`: Disables CSS Modules for all files and set the `mode` option (see [mode](https://github.com/webpack/css-loader#mode) for details).
+- `object`: Enables CSS modules for all files unless the `modules.auto` option is provided. otherwise the `modules.auto` option will determine whether if it is CSS Modules or not (see [auto](https://github.com/webpack/css-loader#auto) for more details).
The `modules` option enables/disables the **[CSS Modules](https://github.com/css-modules/css-modules)** specification and configures its behavior.
@@ -1854,7 +1854,7 @@ import "./styles.css";
>
> You should not use [`style-loader`](https://github.com/webpack-contrib/style-loader) or [`mini-css-extract-plugin`](https://github.com/webpack-contrib/mini-css-extract-plugin) with this value.
>
-> The `esModule` option should be enabled if you want to use it with [`CSS modules`](https://github.com/webpack-contrib/css-loader#modules). By default for locals [named export](https://github.com/webpack-contrib/css-loader#namedexport) will be used.
+> The `esModule` option should be enabled if you want to use it with [`CSS modules`](https://github.com/webpack/css-loader#modules). By default for locals [named export](https://github.com/webpack/css-loader#namedexport) will be used.
The default export is `string`.
@@ -1893,7 +1893,7 @@ console.log(sheet);
> [!WARNING]
>
-> The `esModule` option should be enabled if you want to use it with [`CSS modules`](https://github.com/webpack-contrib/css-loader#modules). By default for locals [named export](https://github.com/webpack-contrib/css-loader#namedexport) will be used.
+> The `esModule` option should be enabled if you want to use it with [`CSS modules`](https://github.com/webpack/css-loader#modules). By default for locals [named export](https://github.com/webpack/css-loader#namedexport) will be used.
> [!WARNING]
>
@@ -2354,10 +2354,10 @@ If you are new here, please take a moment to review our contributing guidelines
[npm-url]: https://npmjs.com/package/css-loader
[node]: https://img.shields.io/node/v/css-loader.svg
[node-url]: https://nodejs.org
-[tests]: https://github.com/webpack-contrib/css-loader/workflows/css-loader/badge.svg
-[tests-url]: https://github.com/webpack-contrib/css-loader/actions
-[cover]: https://codecov.io/gh/webpack-contrib/css-loader/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/css-loader
+[tests]: https://github.com/webpack/css-loader/workflows/css-loader/badge.svg
+[tests-url]: https://github.com/webpack/css-loader/actions
+[cover]: https://codecov.io/gh/webpack/css-loader/branch/main/graph/badge.svg
+[cover-url]: https://codecov.io/gh/webpack/css-loader
[discussion]: https://img.shields.io/github/discussions/webpack/webpack
[discussion-url]: https://github.com/webpack/webpack/discussions
[size]: https://packagephobia.now.sh/badge?p=css-loader
diff --git a/package.json b/package.json
index 506a4d1e..0454bdf0 100644
--- a/package.json
+++ b/package.json
@@ -3,10 +3,10 @@
"version": "7.1.2",
"description": "css loader module for webpack",
"license": "MIT",
- "repository": "webpack-contrib/css-loader",
+ "repository": "webpack/css-loader",
"author": "Tobias Koppers @sokra",
- "homepage": "https://github.com/webpack-contrib/css-loader",
- "bugs": "https://github.com/webpack-contrib/css-loader/issues",
+ "homepage": "https://github.com/webpack/css-loader",
+ "bugs": "https://github.com/webpack/css-loader/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
@@ -22,7 +22,7 @@
"prebuild": "npm run clean",
"build": "cross-env NODE_ENV=production babel src -d dist --copy-files",
"postbuild": "npm run validate:runtime",
- "commitlint": "commitlint --from=master",
+ "commitlint": "commitlint --from=main",
"security": "npm audit --production",
"lint:prettier": "prettier --cache --list-different .",
"lint:js": "eslint --cache .",
diff --git a/src/options.json b/src/options.json
index 22773c7b..6824d672 100644
--- a/src/options.json
+++ b/src/options.json
@@ -4,7 +4,7 @@
"properties": {
"url": {
"description": "Allows to enables/disables `url()`/`image-set()` functions handling.",
- "link": "https://github.com/webpack-contrib/css-loader#url",
+ "link": "https://github.com/webpack/css-loader#url",
"anyOf": [
{
"type": "boolean"
@@ -22,7 +22,7 @@
},
"import": {
"description": "Allows to enables/disables `@import` at-rules handling.",
- "link": "https://github.com/webpack-contrib/css-loader#import",
+ "link": "https://github.com/webpack/css-loader#import",
"anyOf": [
{
"type": "boolean"
@@ -40,7 +40,7 @@
},
"modules": {
"description": "Allows to enable/disable CSS Modules or ICSS and setup configuration.",
- "link": "https://github.com/webpack-contrib/css-loader#modules",
+ "link": "https://github.com/webpack/css-loader#modules",
"anyOf": [
{
"type": "boolean"
@@ -54,7 +54,7 @@
"properties": {
"auto": {
"description": "Allows auto enable CSS modules based on filename.",
- "link": "https://github.com/webpack-contrib/css-loader#auto",
+ "link": "https://github.com/webpack/css-loader#auto",
"anyOf": [
{
"instanceof": "RegExp"
@@ -69,7 +69,7 @@
},
"mode": {
"description": "Setup `mode` option.",
- "link": "https://github.com/webpack-contrib/css-loader#mode",
+ "link": "https://github.com/webpack/css-loader#mode",
"anyOf": [
{
"enum": ["local", "global", "pure", "icss"]
@@ -81,47 +81,47 @@
},
"localIdentName": {
"description": "Allows to configure the generated local ident name.",
- "link": "https://github.com/webpack-contrib/css-loader#localidentname",
+ "link": "https://github.com/webpack/css-loader#localidentname",
"type": "string",
"minLength": 1
},
"localIdentContext": {
"description": "Allows to redefine basic loader context for local ident name.",
- "link": "https://github.com/webpack-contrib/css-loader#localidentcontext",
+ "link": "https://github.com/webpack/css-loader#localidentcontext",
"type": "string",
"minLength": 1
},
"localIdentHashSalt": {
"description": "Allows to add custom hash to generate more unique classes.",
- "link": "https://github.com/webpack-contrib/css-loader#localidenthashsalt",
+ "link": "https://github.com/webpack/css-loader#localidenthashsalt",
"type": "string",
"minLength": 1
},
"localIdentHashFunction": {
"description": "Allows to specify hash function to generate classes.",
- "link": "https://github.com/webpack-contrib/css-loader#localidenthashfunction",
+ "link": "https://github.com/webpack/css-loader#localidenthashfunction",
"type": "string",
"minLength": 1
},
"localIdentHashDigest": {
"description": "Allows to specify hash digest to generate classes.",
- "link": "https://github.com/webpack-contrib/css-loader#localidenthashdigest",
+ "link": "https://github.com/webpack/css-loader#localidenthashdigest",
"type": "string",
"minLength": 1
},
"localIdentHashDigestLength": {
"description": "Allows to specify hash digest length to generate classes.",
- "link": "https://github.com/webpack-contrib/css-loader#localidenthashdigestlength",
+ "link": "https://github.com/webpack/css-loader#localidenthashdigestlength",
"type": "number"
},
"hashStrategy": {
"description": "Allows to specify should localName be used when computing the hash.",
- "link": "https://github.com/webpack-contrib/css-loader#hashstrategy",
+ "link": "https://github.com/webpack/css-loader#hashstrategy",
"enum": ["resource-path-and-local-name", "minimal-subset"]
},
"localIdentRegExp": {
"description": "Allows to specify custom RegExp for local ident name.",
- "link": "https://github.com/webpack-contrib/css-loader#localidentregexp",
+ "link": "https://github.com/webpack/css-loader#localidentregexp",
"anyOf": [
{
"type": "string",
@@ -134,22 +134,22 @@
},
"getLocalIdent": {
"description": "Allows to specify a function to generate the classname.",
- "link": "https://github.com/webpack-contrib/css-loader#getlocalident",
+ "link": "https://github.com/webpack/css-loader#getlocalident",
"instanceof": "Function"
},
"namedExport": {
"description": "Enables/disables ES modules named export for locals.",
- "link": "https://github.com/webpack-contrib/css-loader#namedexport",
+ "link": "https://github.com/webpack/css-loader#namedexport",
"type": "boolean"
},
"exportGlobals": {
"description": "Allows to export names from global class or id, so you can use that as local name.",
- "link": "https://github.com/webpack-contrib/css-loader#exportglobals",
+ "link": "https://github.com/webpack/css-loader#exportglobals",
"type": "boolean"
},
"exportLocalsConvention": {
"description": "Style of exported classnames.",
- "link": "https://github.com/webpack-contrib/css-loader#localsconvention",
+ "link": "https://github.com/webpack/css-loader#localsconvention",
"anyOf": [
{
"enum": [
@@ -171,12 +171,12 @@
},
"exportOnlyLocals": {
"description": "Export only locals.",
- "link": "https://github.com/webpack-contrib/css-loader#exportonlylocals",
+ "link": "https://github.com/webpack/css-loader#exportonlylocals",
"type": "boolean"
},
"getJSON": {
"description": "Allows outputting of CSS modules mapping through a callback.",
- "link": "https://github.com/webpack-contrib/css-loader#getJSON",
+ "link": "https://github.com/webpack/css-loader#getJSON",
"instanceof": "Function"
}
}
@@ -185,12 +185,12 @@
},
"sourceMap": {
"description": "Allows to enable/disable source maps.",
- "link": "https://github.com/webpack-contrib/css-loader#sourcemap",
+ "link": "https://github.com/webpack/css-loader#sourcemap",
"type": "boolean"
},
"importLoaders": {
"description": "Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.",
- "link": "https://github.com/webpack-contrib/css-loader#importloaders",
+ "link": "https://github.com/webpack/css-loader#importloaders",
"anyOf": [
{
"type": "boolean"
@@ -205,12 +205,12 @@
},
"esModule": {
"description": "Use the ES modules syntax.",
- "link": "https://github.com/webpack-contrib/css-loader#esmodule",
+ "link": "https://github.com/webpack/css-loader#esmodule",
"type": "boolean"
},
"exportType": {
"description": "Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).",
- "link": "https://github.com/webpack-contrib/css-loader#exporttype",
+ "link": "https://github.com/webpack/css-loader#exporttype",
"enum": ["array", "string", "css-style-sheet"]
}
},
diff --git a/test/__snapshots__/import-option.test.js.snap b/test/__snapshots__/import-option.test.js.snap
index f0aa2ca8..dc70f839 100644
--- a/test/__snapshots__/import-option.test.js.snap
+++ b/test/__snapshots__/import-option.test.js.snap
@@ -3738,9 +3738,9 @@ exports[`"import" option should work with absolute URLs: module 1`] = `
import ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from "../../../src/runtime/noSourceMaps.js";
import ___CSS_LOADER_API_IMPORT___ from "../../../src/runtime/api.js";
import ___CSS_LOADER_GET_URL_IMPORT___ from "../../../src/runtime/getUrl.js";
-var ___CSS_LOADER_URL_IMPORT_0___ = new URL("https://raw.githubusercontent.com/webpack-contrib/css-loader/master/test/fixtures/url/img.png", import.meta.url);
+var ___CSS_LOADER_URL_IMPORT_0___ = new URL("https://raw.githubusercontent.com/webpack/css-loader/main/test/fixtures/url/img.png", import.meta.url);
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
-___CSS_LOADER_EXPORT___.push([module.id, "@import url(https://raw.githubusercontent.com/webpack-contrib/css-loader/master/test/fixtures/url/imported.css);"]);
+___CSS_LOADER_EXPORT___.push([module.id, "@import url(https://raw.githubusercontent.com/webpack/css-loader/main/test/fixtures/url/imported.css);"]);
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
// Module
___CSS_LOADER_EXPORT___.push([module.id, \`a {
@@ -3756,7 +3756,7 @@ exports[`"import" option should work with absolute URLs: result 1`] = `
[
[
"./import/absolute-url.css",
- "@import url(https://raw.githubusercontent.com/webpack-contrib/css-loader/master/test/fixtures/url/imported.css);",
+ "@import url(https://raw.githubusercontent.com/webpack/css-loader/main/test/fixtures/url/imported.css);",
],
[
"./import/absolute-url.css",
diff --git a/test/__snapshots__/url-option.test.js.snap b/test/__snapshots__/url-option.test.js.snap
index 8dd552fc..b0c6749a 100644
--- a/test/__snapshots__/url-option.test.js.snap
+++ b/test/__snapshots__/url-option.test.js.snap
@@ -4411,7 +4411,7 @@ exports[`"url" option should work with absolute URLs: module 1`] = `
import ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from "../../../src/runtime/noSourceMaps.js";
import ___CSS_LOADER_API_IMPORT___ from "../../../src/runtime/api.js";
import ___CSS_LOADER_GET_URL_IMPORT___ from "../../../src/runtime/getUrl.js";
-var ___CSS_LOADER_URL_IMPORT_0___ = new URL("https://raw.githubusercontent.com/webpack-contrib/css-loader/master/test/fixtures/url/img.png", import.meta.url);
+var ___CSS_LOADER_URL_IMPORT_0___ = new URL("https://raw.githubusercontent.com/webpack/css-loader/main/test/fixtures/url/img.png", import.meta.url);
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
// Module
diff --git a/test/__snapshots__/validate-options.test.js.snap b/test/__snapshots__/validate-options.test.js.snap
index b1a0ac65..37b001bc 100644
--- a/test/__snapshots__/validate-options.test.js.snap
+++ b/test/__snapshots__/validate-options.test.js.snap
@@ -4,7 +4,7 @@ exports[`validate options should throw an error on the "esModule" option with "t
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options.esModule should be a boolean.
-> Use the ES modules syntax.
- -> Read more at https://github.com/webpack-contrib/css-loader#esmodule"
+ -> Read more at https://github.com/webpack/css-loader#esmodule"
`;
exports[`validate options should throw an error on the "exportType" option with "false" value 1`] = `
@@ -12,7 +12,7 @@ exports[`validate options should throw an error on the "exportType" option with
- options.exportType should be one of these:
"array" | "string" | "css-style-sheet"
-> Allows exporting styles as array with modules, string or constructable stylesheet (i.e. \`CSSStyleSheet\`).
- -> Read more at https://github.com/webpack-contrib/css-loader#exporttype"
+ -> Read more at https://github.com/webpack/css-loader#exporttype"
`;
exports[`validate options should throw an error on the "exportType" option with "true" value 1`] = `
@@ -20,7 +20,7 @@ exports[`validate options should throw an error on the "exportType" option with
- options.exportType should be one of these:
"array" | "string" | "css-style-sheet"
-> Allows exporting styles as array with modules, string or constructable stylesheet (i.e. \`CSSStyleSheet\`).
- -> Read more at https://github.com/webpack-contrib/css-loader#exporttype"
+ -> Read more at https://github.com/webpack/css-loader#exporttype"
`;
exports[`validate options should throw an error on the "import" option with "() => {}" value 1`] = `
@@ -28,7 +28,7 @@ exports[`validate options should throw an error on the "import" option with "()
- options.import should be one of these:
boolean | object { filter? }
-> Allows to enables/disables \`@import\` at-rules handling.
- -> Read more at https://github.com/webpack-contrib/css-loader#import
+ -> Read more at https://github.com/webpack/css-loader#import
Details:
* options.import should be a boolean.
* options.import should be an object:
@@ -40,7 +40,7 @@ exports[`validate options should throw an error on the "import" option with "[]"
- options.import should be one of these:
boolean | object { filter? }
-> Allows to enables/disables \`@import\` at-rules handling.
- -> Read more at https://github.com/webpack-contrib/css-loader#import
+ -> Read more at https://github.com/webpack/css-loader#import
Details:
* options.import should be a boolean.
* options.import should be an object:
@@ -63,7 +63,7 @@ exports[`validate options should throw an error on the "import" option with "tru
- options.import should be one of these:
boolean | object { filter? }
-> Allows to enables/disables \`@import\` at-rules handling.
- -> Read more at https://github.com/webpack-contrib/css-loader#import
+ -> Read more at https://github.com/webpack/css-loader#import
Details:
* options.import should be a boolean.
* options.import should be an object:
@@ -75,7 +75,7 @@ exports[`validate options should throw an error on the "importLoaders" option wi
- options.importLoaders should be one of these:
boolean | string | integer
-> Allows enables/disables or setups number of loaders applied before CSS loader for \`@import\`/CSS Modules and ICSS imports.
- -> Read more at https://github.com/webpack-contrib/css-loader#importloaders
+ -> Read more at https://github.com/webpack/css-loader#importloaders
Details:
* options.importLoaders should be a boolean.
* options.importLoaders should be a string.
@@ -87,12 +87,12 @@ exports[`validate options should throw an error on the "modules" option with "{"
- options.modules should be one of these:
boolean | "local" | "global" | "pure" | "icss" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
- -> Read more at https://github.com/webpack-contrib/css-loader#modules
+ -> Read more at https://github.com/webpack/css-loader#modules
Details:
* options.modules.auto should be one of these:
RegExp | function | boolean
-> Allows auto enable CSS modules based on filename.
- -> Read more at https://github.com/webpack-contrib/css-loader#auto
+ -> Read more at https://github.com/webpack/css-loader#auto
Details:
* options.modules.auto should be an instance of RegExp.
* options.modules.auto should be an instance of function.
@@ -103,7 +103,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options.modules.exportGlobals should be a boolean.
-> Allows to export names from global class or id, so you can use that as local name.
- -> Read more at https://github.com/webpack-contrib/css-loader#exportglobals"
+ -> Read more at https://github.com/webpack/css-loader#exportglobals"
`;
exports[`validate options should throw an error on the "modules" option with "{"exportLocalsConvention":"unknown"}" value 1`] = `
@@ -111,12 +111,12 @@ exports[`validate options should throw an error on the "modules" option with "{"
- options.modules should be one of these:
boolean | "local" | "global" | "pure" | "icss" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
- -> Read more at https://github.com/webpack-contrib/css-loader#modules
+ -> Read more at https://github.com/webpack/css-loader#modules
Details:
* options.modules.exportLocalsConvention should be one of these:
"asIs" | "as-is" | "camelCase" | "camel-case" | "camelCaseOnly" | "camel-case-only" | "dashes" | "dashesOnly" | "dashes-only" | function
-> Style of exported classnames.
- -> Read more at https://github.com/webpack-contrib/css-loader#localsconvention
+ -> Read more at https://github.com/webpack/css-loader#localsconvention
Details:
* options.modules.exportLocalsConvention should be one of these:
"asIs" | "as-is" | "camelCase" | "camel-case" | "camelCaseOnly" | "camel-case-only" | "dashes" | "dashesOnly" | "dashes-only"
@@ -127,49 +127,49 @@ exports[`validate options should throw an error on the "modules" option with "{"
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options.modules.exportOnlyLocals should be a boolean.
-> Export only locals.
- -> Read more at https://github.com/webpack-contrib/css-loader#exportonlylocals"
+ -> Read more at https://github.com/webpack/css-loader#exportonlylocals"
`;
exports[`validate options should throw an error on the "modules" option with "{"getJSON":"invalid"}" value 1`] = `
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options.modules.getJSON should be an instance of function.
-> Allows outputting of CSS modules mapping through a callback.
- -> Read more at https://github.com/webpack-contrib/css-loader#getJSON"
+ -> Read more at https://github.com/webpack/css-loader#getJSON"
`;
exports[`validate options should throw an error on the "modules" option with "{"getJSON":true}" value 1`] = `
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options.modules.getJSON should be an instance of function.
-> Allows outputting of CSS modules mapping through a callback.
- -> Read more at https://github.com/webpack-contrib/css-loader#getJSON"
+ -> Read more at https://github.com/webpack/css-loader#getJSON"
`;
exports[`validate options should throw an error on the "modules" option with "{"getLocalIdent":[]}" value 1`] = `
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options.modules.getLocalIdent should be an instance of function.
-> Allows to specify a function to generate the classname.
- -> Read more at https://github.com/webpack-contrib/css-loader#getlocalident"
+ -> Read more at https://github.com/webpack/css-loader#getlocalident"
`;
exports[`validate options should throw an error on the "modules" option with "{"localIdentContext":true}" value 1`] = `
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options.modules.localIdentContext should be a non-empty string.
-> Allows to redefine basic loader context for local ident name.
- -> Read more at https://github.com/webpack-contrib/css-loader#localidentcontext"
+ -> Read more at https://github.com/webpack/css-loader#localidentcontext"
`;
exports[`validate options should throw an error on the "modules" option with "{"localIdentHashSalt":true}" value 1`] = `
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options.modules.localIdentHashSalt should be a non-empty string.
-> Allows to add custom hash to generate more unique classes.
- -> Read more at https://github.com/webpack-contrib/css-loader#localidenthashsalt"
+ -> Read more at https://github.com/webpack/css-loader#localidenthashsalt"
`;
exports[`validate options should throw an error on the "modules" option with "{"localIdentName":true}" value 1`] = `
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options.modules.localIdentName should be a non-empty string.
-> Allows to configure the generated local ident name.
- -> Read more at https://github.com/webpack-contrib/css-loader#localidentname"
+ -> Read more at https://github.com/webpack/css-loader#localidentname"
`;
exports[`validate options should throw an error on the "modules" option with "{"localIdentRegExp":true}" value 1`] = `
@@ -177,12 +177,12 @@ exports[`validate options should throw an error on the "modules" option with "{"
- options.modules should be one of these:
boolean | "local" | "global" | "pure" | "icss" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
- -> Read more at https://github.com/webpack-contrib/css-loader#modules
+ -> Read more at https://github.com/webpack/css-loader#modules
Details:
* options.modules.localIdentRegExp should be one of these:
non-empty string | RegExp
-> Allows to specify custom RegExp for local ident name.
- -> Read more at https://github.com/webpack-contrib/css-loader#localidentregexp
+ -> Read more at https://github.com/webpack/css-loader#localidentregexp
Details:
* options.modules.localIdentRegExp should be a non-empty string.
* options.modules.localIdentRegExp should be an instance of RegExp."
@@ -193,12 +193,12 @@ exports[`validate options should throw an error on the "modules" option with "{"
- options.modules should be one of these:
boolean | "local" | "global" | "pure" | "icss" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
- -> Read more at https://github.com/webpack-contrib/css-loader#modules
+ -> Read more at https://github.com/webpack/css-loader#modules
Details:
* options.modules.mode should be one of these:
"local" | "global" | "pure" | "icss" | function
-> Setup \`mode\` option.
- -> Read more at https://github.com/webpack-contrib/css-loader#mode
+ -> Read more at https://github.com/webpack/css-loader#mode
Details:
* options.modules.mode should be one of these:
"local" | "global" | "pure" | "icss"
@@ -210,12 +210,12 @@ exports[`validate options should throw an error on the "modules" option with "{"
- options.modules should be one of these:
boolean | "local" | "global" | "pure" | "icss" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
- -> Read more at https://github.com/webpack-contrib/css-loader#modules
+ -> Read more at https://github.com/webpack/css-loader#modules
Details:
* options.modules.mode should be one of these:
"local" | "global" | "pure" | "icss" | function
-> Setup \`mode\` option.
- -> Read more at https://github.com/webpack-contrib/css-loader#mode
+ -> Read more at https://github.com/webpack/css-loader#mode
Details:
* options.modules.mode should be one of these:
"local" | "global" | "pure" | "icss"
@@ -227,12 +227,12 @@ exports[`validate options should throw an error on the "modules" option with "{"
- options.modules should be one of these:
boolean | "local" | "global" | "pure" | "icss" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
- -> Read more at https://github.com/webpack-contrib/css-loader#modules
+ -> Read more at https://github.com/webpack/css-loader#modules
Details:
* options.modules.mode should be one of these:
"local" | "global" | "pure" | "icss" | function
-> Setup \`mode\` option.
- -> Read more at https://github.com/webpack-contrib/css-loader#mode
+ -> Read more at https://github.com/webpack/css-loader#mode
Details:
* options.modules.mode should be one of these:
"local" | "global" | "pure" | "icss"
@@ -244,12 +244,12 @@ exports[`validate options should throw an error on the "modules" option with "{"
- options.modules should be one of these:
boolean | "local" | "global" | "pure" | "icss" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
- -> Read more at https://github.com/webpack-contrib/css-loader#modules
+ -> Read more at https://github.com/webpack/css-loader#modules
Details:
* options.modules.mode should be one of these:
"local" | "global" | "pure" | "icss" | function
-> Setup \`mode\` option.
- -> Read more at https://github.com/webpack-contrib/css-loader#mode
+ -> Read more at https://github.com/webpack/css-loader#mode
Details:
* options.modules.mode should be one of these:
"local" | "global" | "pure" | "icss"
@@ -260,7 +260,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options.modules.namedExport should be a boolean.
-> Enables/disables ES modules named export for locals.
- -> Read more at https://github.com/webpack-contrib/css-loader#namedexport"
+ -> Read more at https://github.com/webpack/css-loader#namedexport"
`;
exports[`validate options should throw an error on the "modules" option with "globals" value 1`] = `
@@ -268,7 +268,7 @@ exports[`validate options should throw an error on the "modules" option with "gl
- options.modules should be one of these:
boolean | "local" | "global" | "pure" | "icss" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
- -> Read more at https://github.com/webpack-contrib/css-loader#modules
+ -> Read more at https://github.com/webpack/css-loader#modules
Details:
* options.modules should be a boolean.
* options.modules should be one of these:
@@ -282,7 +282,7 @@ exports[`validate options should throw an error on the "modules" option with "lo
- options.modules should be one of these:
boolean | "local" | "global" | "pure" | "icss" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
- -> Read more at https://github.com/webpack-contrib/css-loader#modules
+ -> Read more at https://github.com/webpack/css-loader#modules
Details:
* options.modules should be a boolean.
* options.modules should be one of these:
@@ -296,7 +296,7 @@ exports[`validate options should throw an error on the "modules" option with "pu
- options.modules should be one of these:
boolean | "local" | "global" | "pure" | "icss" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
- -> Read more at https://github.com/webpack-contrib/css-loader#modules
+ -> Read more at https://github.com/webpack/css-loader#modules
Details:
* options.modules should be a boolean.
* options.modules should be one of these:
@@ -310,7 +310,7 @@ exports[`validate options should throw an error on the "modules" option with "tr
- options.modules should be one of these:
boolean | "local" | "global" | "pure" | "icss" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
- -> Read more at https://github.com/webpack-contrib/css-loader#modules
+ -> Read more at https://github.com/webpack/css-loader#modules
Details:
* options.modules should be a boolean.
* options.modules should be one of these:
@@ -323,7 +323,7 @@ exports[`validate options should throw an error on the "sourceMap" option with "
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options.sourceMap should be a boolean.
-> Allows to enable/disable source maps.
- -> Read more at https://github.com/webpack-contrib/css-loader#sourcemap"
+ -> Read more at https://github.com/webpack/css-loader#sourcemap"
`;
exports[`validate options should throw an error on the "unknown" option with "/test/" value 1`] = `
@@ -379,7 +379,7 @@ exports[`validate options should throw an error on the "url" option with "() =>
- options.url should be one of these:
boolean | object { filter? }
-> Allows to enables/disables \`url()\`/\`image-set()\` functions handling.
- -> Read more at https://github.com/webpack-contrib/css-loader#url
+ -> Read more at https://github.com/webpack/css-loader#url
Details:
* options.url should be a boolean.
* options.url should be an object:
@@ -391,7 +391,7 @@ exports[`validate options should throw an error on the "url" option with "[]" va
- options.url should be one of these:
boolean | object { filter? }
-> Allows to enables/disables \`url()\`/\`image-set()\` functions handling.
- -> Read more at https://github.com/webpack-contrib/css-loader#url
+ -> Read more at https://github.com/webpack/css-loader#url
Details:
* options.url should be a boolean.
* options.url should be an object:
@@ -414,7 +414,7 @@ exports[`validate options should throw an error on the "url" option with "true"
- options.url should be one of these:
boolean | object { filter? }
-> Allows to enables/disables \`url()\`/\`image-set()\` functions handling.
- -> Read more at https://github.com/webpack-contrib/css-loader#url
+ -> Read more at https://github.com/webpack/css-loader#url
Details:
* options.url should be a boolean.
* options.url should be an object:
diff --git a/test/fixtures/import/absolute-url.css b/test/fixtures/import/absolute-url.css
index 0d440b54..7a201d98 100644
--- a/test/fixtures/import/absolute-url.css
+++ b/test/fixtures/import/absolute-url.css
@@ -1,5 +1,5 @@
-@import url("https://raw.githubusercontent.com/webpack-contrib/css-loader/master/test/fixtures/url/imported.css");
+@import url("https://raw.githubusercontent.com/webpack/css-loader/main/test/fixtures/url/imported.css");
a {
- background: url("https://raw.githubusercontent.com/webpack-contrib/css-loader/master/test/fixtures/url/img.png");
+ background: url("https://raw.githubusercontent.com/webpack/css-loader/main/test/fixtures/url/img.png");
}
diff --git a/test/fixtures/url/absolute-url.css b/test/fixtures/url/absolute-url.css
index 058c94b2..770c9e3d 100644
--- a/test/fixtures/url/absolute-url.css
+++ b/test/fixtures/url/absolute-url.css
@@ -1,3 +1,3 @@
a {
- background: url("https://raw.githubusercontent.com/webpack-contrib/css-loader/master/test/fixtures/url/img.png");
+ background: url("https://raw.githubusercontent.com/webpack/css-loader/main/test/fixtures/url/img.png");
}
diff --git a/test/lock-files/import/lock.json b/test/lock-files/import/lock.json
index aecaa7ed..0cdaf23a 100644
--- a/test/lock-files/import/lock.json
+++ b/test/lock-files/import/lock.json
@@ -1,13 +1,13 @@
{
- "https://raw.githubusercontent.com/webpack-contrib/css-loader/master/test/fixtures/url/img-from-imported.png": {
+ "https://raw.githubusercontent.com/webpack/css-loader/main/test/fixtures/url/img-from-imported.png": {
"integrity": "sha512-bHqIPBYwzPsVLYcTDqJzwgvIaxLjmezufiCVXAMI0Naelf3eWVdydMA40hXbSuB0dZCGjCepuGaI7Ze8kLM+Ew==",
"contentType": "image/png"
},
- "https://raw.githubusercontent.com/webpack-contrib/css-loader/master/test/fixtures/url/img.png": {
+ "https://raw.githubusercontent.com/webpack/css-loader/main/test/fixtures/url/img.png": {
"integrity": "sha512-bHqIPBYwzPsVLYcTDqJzwgvIaxLjmezufiCVXAMI0Naelf3eWVdydMA40hXbSuB0dZCGjCepuGaI7Ze8kLM+Ew==",
"contentType": "image/png"
},
- "https://raw.githubusercontent.com/webpack-contrib/css-loader/master/test/fixtures/url/imported.css": {
+ "https://raw.githubusercontent.com/webpack/css-loader/main/test/fixtures/url/imported.css": {
"integrity": "sha512-yduMovHFp1vmkdJda9uz9c3WIwPbmESRe9u1IrxoKKw0q3AjaMDyAwAuZqQW/HFi6fEdS+fAGkBI++JO6EeUSg==",
"contentType": "text/plain; charset=utf-8"
},
diff --git a/test/lock-files/url/lock.json b/test/lock-files/url/lock.json
index 7b0be466..d7f2a3b7 100644
--- a/test/lock-files/url/lock.json
+++ b/test/lock-files/url/lock.json
@@ -1,5 +1,5 @@
{
- "https://raw.githubusercontent.com/webpack-contrib/css-loader/master/test/fixtures/url/img.png": {
+ "https://raw.githubusercontent.com/webpack/css-loader/main/test/fixtures/url/img.png": {
"integrity": "sha512-bHqIPBYwzPsVLYcTDqJzwgvIaxLjmezufiCVXAMI0Naelf3eWVdydMA40hXbSuB0dZCGjCepuGaI7Ze8kLM+Ew==",
"contentType": "image/png"
},
diff --git a/test/runtime/api.test.js b/test/runtime/api.test.js
index 327c888d..8ec6db33 100644
--- a/test/runtime/api.test.js
+++ b/test/runtime/api.test.js
@@ -241,7 +241,7 @@ describe("api", () => {
expect(m.toString()).toMatchSnapshot();
});
- // https://github.com/webpack-contrib/css-loader/issues/1322
+ // https://github.com/webpack/css-loader/issues/1322
it("should toString with a source map without map", () => {
const m = api(sourceMaps);