diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
deleted file mode 100644
index a3cedd77..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.
\ No newline at end of file
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
deleted file mode 100644
index b992d746..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": {
- "mini-css-extract-plugin": "webpack-contrib/mini-css-extract-plugin#{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 c5547b6f..00000000
--- a/.github/ISSUE_TEMPLATE/BUG.md
+++ /dev/null
@@ -1,34 +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 a94c0c95..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 1e5304e1..00000000
--- a/.github/ISSUE_TEMPLATE/FEATURE.md
+++ /dev/null
@@ -1,18 +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 c60a5017..00000000
--- a/.github/ISSUE_TEMPLATE/MODIFICATION.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-name: π§ Modification Request
-about: Would you like something 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 daaf9123..00000000
--- a/.github/ISSUE_TEMPLATE/SUPPORT.md
+++ /dev/null
@@ -1,7 +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 place to ask.
-Please visit [GitHub Discussions](https://github.com/webpack/webpack/discussions) or [StackOverflow](https://stackoverflow.com/questions/tagged/webpack) instead.
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 5e851d05..038004c6 100644
--- a/.github/workflows/nodejs.yml
+++ b/.github/workflows/nodejs.yml
@@ -3,11 +3,11 @@ name: mini-css-extract-plugin
on:
push:
branches:
- - master
+ - main
- next
pull_request:
branches:
- - master
+ - main
- next
permissions:
diff --git a/README.md b/README.md
index 4e952dff..1e4ae110 100644
--- a/README.md
+++ b/README.md
@@ -46,7 +46,7 @@ or
pnpm add -D mini-css-extract-plugin
```
-It's recommended to combine `mini-css-extract-plugin` with the [`css-loader`](https://github.com/webpack-contrib/css-loader)
+It's recommended to combine `mini-css-extract-plugin` with the [`css-loader`](https://github.com/webpack/css-loader)
Then add the loader and the plugin to your `webpack` configuration. For example:
@@ -88,7 +88,7 @@ module.exports = {
> [!WARNING]
>
-> Source maps works only for `source-map`/`nosources-source-map`/`hidden-nosources-source-map`/`hidden-source-map` values because CSS only supports source maps with the `sourceMappingURL` comment (i.e. `//# sourceMappingURL=style.css.map`). If you need set `devtool` to another value you can enable source maps generation for extracted CSS using [`sourceMap: true`](https://github.com/webpack-contrib/css-loader#sourcemap) for `css-loader`.
+> Source maps works only for `source-map`/`nosources-source-map`/`hidden-nosources-source-map`/`hidden-source-map` values because CSS only supports source maps with the `sourceMappingURL` comment (i.e. `//# sourceMappingURL=style.css.map`). If you need set `devtool` to another value you can enable source maps generation for extracted CSS using [`sourceMap: true`](https://github.com/webpack/css-loader#sourcemap) for `css-loader`.
## Options
@@ -611,7 +611,7 @@ module.exports = {
### Recommended
For `production` builds, it is recommended to extract the CSS from your bundle being able to use parallel loading of CSS/JS resources later on. This can be achieved by using the `mini-css-extract-plugin`, because it creates separate css files.
-For `development` mode (including `webpack-dev-server`) you can use [style-loader](https://github.com/webpack-contrib/style-loader), because it injects CSS into the DOM using multiple and works faster.
+For `development` mode (including `webpack-dev-server`) you can use [style-loader](https://github.com/webpack/style-loader), because it injects CSS into the DOM using multiple and works faster.
> Important: Do not use `style-loader` and `mini-css-extract-plugin` together.
@@ -1266,7 +1266,7 @@ MiniCssExtractPlugin.getCompilationHooks(compilation).beforeTagInsert.tap(
(source, varNames) =>
Template.asString([
source,
- `${varNames.tag}.setAttribute("href", "https://github.com/webpack-contrib/mini-css-extract-plugin");`,
+ `${varNames.tag}.setAttribute("href", "https://github.com/webpack/mini-css-extract-plugin");`,
]),
);
```
@@ -1286,10 +1286,10 @@ If you're new here, please take a moment to review our contributing guidelines b
[npm-url]: https://npmjs.com/package/mini-css-extract-plugin
[node]: https://img.shields.io/node/v/mini-css-extract-plugin.svg
[node-url]: https://nodejs.org
-[tests]: https://github.com/webpack-contrib/mini-css-extract-plugin/workflows/mini-css-extract-plugin/badge.svg
-[tests-url]: https://github.com/webpack-contrib/mini-css-extract-plugin/actions
-[cover]: https://codecov.io/gh/webpack-contrib/mini-css-extract-plugin/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/mini-css-extract-plugin
+[tests]: https://github.com/webpack/mini-css-extract-plugin/workflows/mini-css-extract-plugin/badge.svg
+[tests-url]: https://github.com/webpack/mini-css-extract-plugin/actions
+[cover]: https://codecov.io/gh/webpack/mini-css-extract-plugin/branch/main/graph/badge.svg
+[cover-url]: https://codecov.io/gh/webpack/mini-css-extract-plugin
[discussion]: https://img.shields.io/github/discussions/webpack/webpack
[discussion-url]: https://github.com/webpack/webpack/discussions
[size]: https://packagephobia.now.sh/badge?p=mini-css-extract-plugin
diff --git a/package.json b/package.json
index 9214d2e4..8ba5fe0a 100644
--- a/package.json
+++ b/package.json
@@ -8,9 +8,9 @@
"extract",
"hmr"
],
- "homepage": "https://github.com/webpack-contrib/mini-css-extract-plugin",
- "bugs": "https://github.com/webpack-contrib/mini-css-extract-plugin/issues",
- "repository": "webpack-contrib/mini-css-extract-plugin",
+ "homepage": "https://github.com/webpack/mini-css-extract-plugin",
+ "bugs": "https://github.com/webpack/mini-css-extract-plugin/issues",
+ "repository": "webpack/mini-css-extract-plugin",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
@@ -30,7 +30,7 @@
"build:code": "cross-env NODE_ENV=production babel src -d dist --copy-files",
"build": "npm-run-all -p \"build:**\"",
"clean": "del-cli dist",
- "commitlint": "commitlint --from=master",
+ "commitlint": "commitlint --from=main",
"lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different",
"lint:code": "eslint --cache .",
"lint:spelling": "cspell \"**/*.*\"",
diff --git a/src/loader-options.json b/src/loader-options.json
index 789f5045..08c770b6 100644
--- a/src/loader-options.json
+++ b/src/loader-options.json
@@ -13,17 +13,17 @@
}
],
"description": "Specifies a custom public path for the external resources like images, files, etc inside CSS.",
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#publicpath"
+ "link": "https://github.com/webpack/mini-css-extract-plugin#publicpath"
},
"emit": {
"type": "boolean",
"description": "If true, emits a file (writes a file to the filesystem). If false, the plugin will extract the CSS but will not emit the file",
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#emit"
+ "link": "https://github.com/webpack/mini-css-extract-plugin#emit"
},
"esModule": {
"type": "boolean",
"description": "Generates JS modules that use the ES modules syntax.",
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#esmodule"
+ "link": "https://github.com/webpack/mini-css-extract-plugin#esmodule"
},
"layer": {
"type": "string"
@@ -31,7 +31,7 @@
"defaultExport": {
"type": "boolean",
"description": "Duplicate the named export with CSS modules locals to the default export (only when `esModules: true` for css-loader).",
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#defaultexports"
+ "link": "https://github.com/webpack/mini-css-extract-plugin#defaultexports"
}
}
}
diff --git a/src/loader.js b/src/loader.js
index 4c69bbef..31a7a3c2 100644
--- a/src/loader.js
+++ b/src/loader.js
@@ -111,7 +111,7 @@ function pitch(request) {
if (!optionsFromPlugin) {
callback(
new Error(
- "You forgot to add 'mini-css-extract-plugin' plugin (i.e. `{ plugins: [new MiniCssExtractPlugin()] }`), please read https://github.com/webpack-contrib/mini-css-extract-plugin#getting-started",
+ "You forgot to add 'mini-css-extract-plugin' plugin (i.e. `{ plugins: [new MiniCssExtractPlugin()] }`), please read https://github.com/webpack/mini-css-extract-plugin#getting-started",
),
);
diff --git a/src/plugin-options.json b/src/plugin-options.json
index eea6cfd1..34d6b334 100644
--- a/src/plugin-options.json
+++ b/src/plugin-options.json
@@ -15,7 +15,7 @@
}
],
"description": "This option determines the name of each output CSS file.",
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#filename"
+ "link": "https://github.com/webpack/mini-css-extract-plugin#filename"
},
"chunkFilename": {
"anyOf": [
@@ -29,21 +29,21 @@
}
],
"description": "This option determines the name of non-entry chunk files.",
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#chunkfilename"
+ "link": "https://github.com/webpack/mini-css-extract-plugin#chunkfilename"
},
"experimentalUseImportModule": {
"type": "boolean",
"description": "Enable the experimental importModule approach instead of using child compilers. This uses less memory and is faster.",
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#experimentaluseimportmodule"
+ "link": "https://github.com/webpack/mini-css-extract-plugin#experimentaluseimportmodule"
},
"ignoreOrder": {
"type": "boolean",
"description": "Remove Order Warnings.",
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#ignoreorder"
+ "link": "https://github.com/webpack/mini-css-extract-plugin#ignoreorder"
},
"insert": {
"description": "Inserts the `link` tag at the given position for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.",
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#insert",
+ "link": "https://github.com/webpack/mini-css-extract-plugin#insert",
"anyOf": [
{
"type": "string"
@@ -55,7 +55,7 @@
},
"attributes": {
"description": "Adds custom attributes to the `link` tag for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.",
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#attributes",
+ "link": "https://github.com/webpack/mini-css-extract-plugin#attributes",
"type": "object"
},
"linkType": {
@@ -68,12 +68,12 @@
}
],
"description": "This option allows loading asynchronous chunks with a custom link type",
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#linktype"
+ "link": "https://github.com/webpack/mini-css-extract-plugin#linktype"
},
"runtime": {
"type": "boolean",
"description": "Enabled/Disables runtime generation. CSS will be still extracted and can be used for a custom loading methods.",
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#noRuntime"
+ "link": "https://github.com/webpack/mini-css-extract-plugin#noRuntime"
}
}
}
diff --git a/test/__snapshots__/validate-loader-options.test.js.snap b/test/__snapshots__/validate-loader-options.test.js.snap
index 5f9bdadd..3c05a023 100644
--- a/test/__snapshots__/validate-loader-options.test.js.snap
+++ b/test/__snapshots__/validate-loader-options.test.js.snap
@@ -4,14 +4,14 @@ exports[`validate options should throw an error on the "defaultExport" option wi
"Invalid options object. Mini CSS Extract Plugin Loader has been initialized using an options object that does not match the API schema.
- options.defaultExport should be a boolean.
-> Duplicate the named export with CSS modules locals to the default export (only when \`esModules: true\` for css-loader).
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#defaultexports"
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#defaultexports"
`;
exports[`validate options should throw an error on the "esModule" option with "1" value 1`] = `
"Invalid options object. Mini CSS Extract Plugin Loader has been initialized using an options object that does not match the API schema.
- options.esModule should be a boolean.
-> Generates JS modules that use the ES modules syntax.
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#esmodule"
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#esmodule"
`;
exports[`validate options should throw an error on the "publicPath" option with "true" value 1`] = `
@@ -19,7 +19,7 @@ exports[`validate options should throw an error on the "publicPath" option with
- options.publicPath should be one of these:
string | function
-> Specifies a custom public path for the external resources like images, files, etc inside CSS.
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#publicpath
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#publicpath
Details:
* options.publicPath should be a string.
* options.publicPath should be an instance of function."
diff --git a/test/__snapshots__/validate-plugin-options.test.js.snap b/test/__snapshots__/validate-plugin-options.test.js.snap
index ff8fb308..b21b0c3a 100644
--- a/test/__snapshots__/validate-plugin-options.test.js.snap
+++ b/test/__snapshots__/validate-plugin-options.test.js.snap
@@ -5,7 +5,7 @@ exports[`validate options should throw an error on the "attributes" option with
- options.attributes should be an object:
object { β¦ }
-> Adds custom attributes to the \`link\` tag for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#attributes"
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#attributes"
`;
exports[`validate options should throw an error on the "chunkFilename" option with "" value 1`] = `
@@ -23,7 +23,7 @@ exports[`validate options should throw an error on the "chunkFilename" option wi
- options.chunkFilename should be one of these:
non-empty string | function
-> This option determines the name of non-entry chunk files.
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#chunkfilename
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#chunkfilename
Details:
* options.chunkFilename should be a non-empty string.
* options.chunkFilename should be an instance of function."
@@ -44,7 +44,7 @@ exports[`validate options should throw an error on the "filename" option with "t
- options.filename should be one of these:
non-empty string | function
-> This option determines the name of each output CSS file.
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#filename
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#filename
Details:
* options.filename should be a non-empty string.
* options.filename should be an instance of function."
@@ -54,7 +54,7 @@ exports[`validate options should throw an error on the "ignoreOrder" option with
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
- options.ignoreOrder should be a boolean.
-> Remove Order Warnings.
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#ignoreorder"
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#ignoreorder"
`;
exports[`validate options should throw an error on the "insert" option with "{}" value 1`] = `
@@ -62,7 +62,7 @@ exports[`validate options should throw an error on the "insert" option with "{}"
- options.insert should be one of these:
string | function
-> Inserts the \`link\` tag at the given position for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#insert
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#insert
Details:
* options.insert should be a string.
* options.insert should be an instance of function."
@@ -73,7 +73,7 @@ exports[`validate options should throw an error on the "insert" option with "1"
- options.insert should be one of these:
string | function
-> Inserts the \`link\` tag at the given position for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#insert
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#insert
Details:
* options.insert should be a string.
* options.insert should be an instance of function."
@@ -84,7 +84,7 @@ exports[`validate options should throw an error on the "insert" option with "tru
- options.insert should be one of these:
string | function
-> Inserts the \`link\` tag at the given position for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#insert
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#insert
Details:
* options.insert should be a string.
* options.insert should be an instance of function."
@@ -95,7 +95,7 @@ exports[`validate options should throw an error on the "linkType" option with "[
- options.linkType should be one of these:
\\"text/css\\" | boolean
-> This option allows loading asynchronous chunks with a custom link type
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#linktype
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#linktype
Details:
* options.linkType should be \\"text/css\\".
* options.linkType should be a boolean."
@@ -106,7 +106,7 @@ exports[`validate options should throw an error on the "linkType" option with "{
- options.linkType should be one of these:
\\"text/css\\" | boolean
-> This option allows loading asynchronous chunks with a custom link type
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#linktype
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#linktype
Details:
* options.linkType should be \\"text/css\\".
* options.linkType should be a boolean."
@@ -117,7 +117,7 @@ exports[`validate options should throw an error on the "linkType" option with "1
- options.linkType should be one of these:
\\"text/css\\" | boolean
-> This option allows loading asynchronous chunks with a custom link type
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#linktype
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#linktype
Details:
* options.linkType should be \\"text/css\\".
* options.linkType should be a boolean."
@@ -128,7 +128,7 @@ exports[`validate options should throw an error on the "linkType" option with "i
- options.linkType should be one of these:
\\"text/css\\" | boolean
-> This option allows loading asynchronous chunks with a custom link type
- -> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#linktype
+ -> Read more at https://github.com/webpack/mini-css-extract-plugin#linktype
Details:
* options.linkType should be \\"text/css\\".
* options.linkType should be a boolean."
diff --git a/test/hooks.test.js b/test/hooks.test.js
index 61c7be6e..30ad3e4f 100644
--- a/test/hooks.test.js
+++ b/test/hooks.test.js
@@ -51,7 +51,7 @@ describe("hooks", () => {
).beforeTagInsert.tap("changeHref", (source, varNames) =>
Template.asString([
source,
- `${varNames.tag}.setAttribute("href", "https://github.com/webpack-contrib/mini-css-extract-plugin");`,
+ `${varNames.tag}.setAttribute("href", "https://github.com/webpack/mini-css-extract-plugin");`,
]),
);
});
@@ -65,7 +65,7 @@ describe("hooks", () => {
const [tag] = dom.window.document.head.getElementsByTagName("link");
expect(tag.getAttribute("integrity")).toBe("sriHashes[chunkId]");
expect(tag.getAttribute("href")).toBe(
- "https://github.com/webpack-contrib/mini-css-extract-plugin",
+ "https://github.com/webpack/mini-css-extract-plugin",
);
});
});