diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
deleted file mode 100644
index f320648..0000000
--- 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 2443f0a..0000000
--- 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": {
- "image-minimizer-webpack-plugin": "webpack-contrib/image-minimizer-webpack-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 5e7c7b6..0000000
--- 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 f92d3cb..0000000
--- a/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/.github/ISSUE_TEMPLATE/BUG.md b/.github/ISSUE_TEMPLATE/BUG.md
deleted file mode 100644
index 931d2e2..0000000
--- 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 1f9fad7..0000000
--- 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 d1e618f..0000000
--- 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 3560244..0000000
--- 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 066348a..0000000
--- 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 - visit "GitHub Discussions" or "Stack Overflow" instead.
----
-
-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)
-- [Stack Overflow](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 550abc2..0000000
--- 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 acc0ee9..e21e20e 100644
--- a/.github/workflows/nodejs.yml
+++ b/.github/workflows/nodejs.yml
@@ -3,11 +3,11 @@ name: image-minimizer-webpack-plugin
on:
push:
branches:
- - master
+ - main
- next
pull_request:
branches:
- - master
+ - main
- next
permissions:
diff --git a/README.md b/README.md
index 9b1522b..33ca5cf 100644
--- a/README.md
+++ b/README.md
@@ -2647,10 +2647,10 @@ If youβre interested in helping improve this plugin, please take a moment to r
[npm-url]: https://npmjs.com/package/image-minimizer-webpack-plugin
[node]: https://img.shields.io/node/v/image-minimizer-webpack-plugin.svg
[node-url]: https://nodejs.org
-[tests]: https://github.com/webpack-contrib/image-minimizer-webpack-plugin/workflows/image-minimizer-webpack-plugin/badge.svg
-[tests-url]: https://github.com/webpack-contrib/image-minimizer-webpack-plugin/actions
-[cover]: https://codecov.io/gh/webpack-contrib/image-minimizer-webpack-plugin/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/image-minimizer-webpack-plugin
+[tests]: https://github.com/webpack/image-minimizer-webpack-plugin/workflows/image-minimizer-webpack-plugin/badge.svg
+[tests-url]: https://github.com/webpack/image-minimizer-webpack-plugin/actions
+[cover]: https://codecov.io/gh/webpack/image-minimizer-webpack-plugin/branch/main/graph/badge.svg
+[cover-url]: https://codecov.io/gh/webpack/image-minimizer-webpack-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=image-minimizer-webpack-plugin
diff --git a/package.json b/package.json
index cbea412..58604e7 100644
--- a/package.json
+++ b/package.json
@@ -12,9 +12,9 @@
"compress",
"optimize"
],
- "homepage": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin",
- "bugs": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues",
- "repository": "webpack-contrib/image-minimizer-webpack-plugin",
+ "homepage": "https://github.com/webpack/image-minimizer-webpack-plugin",
+ "bugs": "https://github.com/webpack/image-minimizer-webpack-plugin/issues",
+ "repository": "webpack/image-minimizer-webpack-plugin",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
@@ -34,7 +34,7 @@
"build:types": "tsc --declaration --emitDeclarationOnly && prettier \"types/**/*.ts\" --write",
"build:code": "cross-env NODE_ENV=production babel src -d dist --copy-files",
"build": "npm-run-all -p \"build:**\"",
- "commitlint": "commitlint --from=master",
+ "commitlint": "commitlint --from=main",
"security": "npm audit --production",
"lint:prettier": "prettier --cache --list-different .",
"lint:code": "eslint --cache .",
diff --git a/src/loader-options.json b/src/loader-options.json
index 7088d5f..fb949b8 100644
--- a/src/loader-options.json
+++ b/src/loader-options.json
@@ -79,7 +79,7 @@
"properties": {
"minimizer": {
"description": "Allows you to setup the minimizer function and options.",
- "link": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin#minimizer",
+ "link": "https://github.com/webpack/image-minimizer-webpack-plugin#minimizer",
"anyOf": [
{
"type": "array",
@@ -95,7 +95,7 @@
},
"generator": {
"description": "Allows you to setup the generator function and options.",
- "link": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin#generator",
+ "link": "https://github.com/webpack/image-minimizer-webpack-plugin#generator",
"type": "array",
"minItems": 1,
"items": {
@@ -104,7 +104,7 @@
},
"severityError": {
"description": "Allows to choose how errors are displayed.",
- "link": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin#severityerror",
+ "link": "https://github.com/webpack/image-minimizer-webpack-plugin#severityerror",
"enum": ["off", "warning", "error"]
}
}
diff --git a/src/loader.js b/src/loader.js
index 88f35b8..428b302 100644
--- a/src/loader.js
+++ b/src/loader.js
@@ -30,7 +30,7 @@ const worker = require("./worker");
* @property {Generator[]=} generator generator configuration
*/
-// Workaround - https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/341
+// Workaround - https://github.com/webpack/image-minimizer-webpack-plugin/issues/341
/**
* @template T
* @param {import("webpack").LoaderContext>} loaderContext loader context
diff --git a/src/plugin-options.json b/src/plugin-options.json
index 9fbc63c..8d01076 100644
--- a/src/plugin-options.json
+++ b/src/plugin-options.json
@@ -109,7 +109,7 @@
"properties": {
"test": {
"description": "Include all modules that pass test assertion.",
- "link": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin#test",
+ "link": "https://github.com/webpack/image-minimizer-webpack-plugin#test",
"oneOf": [
{
"$ref": "#/definitions/Rules"
@@ -118,7 +118,7 @@
},
"include": {
"description": "Include all modules matching any of these conditions.",
- "link": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin#include",
+ "link": "https://github.com/webpack/image-minimizer-webpack-plugin#include",
"oneOf": [
{
"$ref": "#/definitions/Rules"
@@ -127,7 +127,7 @@
},
"exclude": {
"description": "Exclude all modules matching any of these conditions.",
- "link": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin#exclude",
+ "link": "https://github.com/webpack/image-minimizer-webpack-plugin#exclude",
"oneOf": [
{
"$ref": "#/definitions/Rules"
@@ -136,7 +136,7 @@
},
"minimizer": {
"description": "Allows you to setup the minimizer function and options.",
- "link": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin#minimizer",
+ "link": "https://github.com/webpack/image-minimizer-webpack-plugin#minimizer",
"anyOf": [
{
"type": "array",
@@ -152,7 +152,7 @@
},
"generator": {
"description": "Allows you to setup the generator function and options.",
- "link": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin#generator",
+ "link": "https://github.com/webpack/image-minimizer-webpack-plugin#generator",
"type": "array",
"minItems": 1,
"items": {
@@ -161,23 +161,23 @@
},
"severityError": {
"description": "Allows to choose how errors are displayed.",
- "link": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin#severityerror",
+ "link": "https://github.com/webpack/image-minimizer-webpack-plugin#severityerror",
"enum": ["off", "warning", "error"]
},
"loader": {
"description": "Automatically adding `imagemin-loader` (require for minification images using in `url-loader`, `svg-url-loader` or other).",
- "link": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin#loader",
+ "link": "https://github.com/webpack/image-minimizer-webpack-plugin#loader",
"type": "boolean"
},
"concurrency": {
"description": "Number of concurrency optimization processes in one time.",
- "link": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin#concurrency",
+ "link": "https://github.com/webpack/image-minimizer-webpack-plugin#concurrency",
"type": "number"
},
"deleteOriginalAssets": {
"type": "boolean",
"description": "Allows to remove original assets after minimization.",
- "link": "https://github.com/webpack-contrib/image-minimizer-webpack-plugin#deleteoriginalassets"
+ "link": "https://github.com/webpack/image-minimizer-webpack-plugin#deleteoriginalassets"
}
}
}
diff --git a/test/__snapshots__/validate-loader-options.test.js.snap b/test/__snapshots__/validate-loader-options.test.js.snap
index adaab3c..dafc9fb 100644
--- a/test/__snapshots__/validate-loader-options.test.js.snap
+++ b/test/__snapshots__/validate-loader-options.test.js.snap
@@ -4,7 +4,7 @@ exports[`validate loader options should throw an error on the "generator" option
"Invalid options object. Image Minimizer Plugin Loader has been initialized using an options object that does not match the API schema.
- options.generator should be a non-empty array.
-> Allows you to setup the generator function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#generator"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#generator"
`;
exports[`validate loader options should throw an error on the "generator" option with "[{"preset":"webp","filename":true}]" value 1`] = `
@@ -35,7 +35,7 @@ exports[`validate loader options should throw an error on the "generator" option
- options.generator should be an array:
[object { implementation, preset, type?, options?, filter?, filename? }, ...] (should not have fewer than 1 item)
-> Allows you to setup the generator function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#generator"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#generator"
`;
exports[`validate loader options should throw an error on the "generator" option with "false" value 1`] = `
@@ -43,7 +43,7 @@ exports[`validate loader options should throw an error on the "generator" option
- options.generator should be an array:
[object { implementation, preset, type?, options?, filter?, filename? }, ...] (should not have fewer than 1 item)
-> Allows you to setup the generator function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#generator"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#generator"
`;
exports[`validate loader options should throw an error on the "generator" option with "null" value 1`] = `
@@ -51,7 +51,7 @@ exports[`validate loader options should throw an error on the "generator" option
- options.generator should be an array:
[object { implementation, preset, type?, options?, filter?, filename? }, ...] (should not have fewer than 1 item)
-> Allows you to setup the generator function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#generator"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#generator"
`;
exports[`validate loader options should throw an error on the "generator" option with "true" value 1`] = `
@@ -59,7 +59,7 @@ exports[`validate loader options should throw an error on the "generator" option
- options.generator should be an array:
[object { implementation, preset, type?, options?, filter?, filename? }, ...] (should not have fewer than 1 item)
-> Allows you to setup the generator function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#generator"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#generator"
`;
exports[`validate loader options should throw an error on the "minimizer" option with "[]" value 1`] = `
@@ -72,7 +72,7 @@ exports[`validate loader options should throw an error on the "minimizer" option
- options.minimizer should be one of these:
[object { implementation?, options?, filter?, filename? }, ...] (should not have fewer than 1 item) | object { implementation?, options?, filter?, filename? }
-> Allows you to setup the minimizer function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#minimizer
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#minimizer
Details:
* options.minimizer.filename should be one of these:
non-empty string | function
@@ -93,7 +93,7 @@ exports[`validate loader options should throw an error on the "minimizer" option
- options.minimizer should be one of these:
[object { implementation?, options?, filter?, filename? }, ...] (should not have fewer than 1 item) | object { implementation?, options?, filter?, filename? }
-> Allows you to setup the minimizer function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#minimizer
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#minimizer
Details:
* options.minimizer should be an array:
[object { implementation?, options?, filter?, filename? }, ...] (should not have fewer than 1 item)
@@ -106,7 +106,7 @@ exports[`validate loader options should throw an error on the "minimizer" option
- options.minimizer should be one of these:
[object { implementation?, options?, filter?, filename? }, ...] (should not have fewer than 1 item) | object { implementation?, options?, filter?, filename? }
-> Allows you to setup the minimizer function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#minimizer
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#minimizer
Details:
* options.minimizer should be an array:
[object { implementation?, options?, filter?, filename? }, ...] (should not have fewer than 1 item)
@@ -119,7 +119,7 @@ exports[`validate loader options should throw an error on the "minimizer" option
- options.minimizer should be one of these:
[object { implementation?, options?, filter?, filename? }, ...] (should not have fewer than 1 item) | object { implementation?, options?, filter?, filename? }
-> Allows you to setup the minimizer function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#minimizer
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#minimizer
Details:
* options.minimizer should be an array:
[object { implementation?, options?, filter?, filename? }, ...] (should not have fewer than 1 item)
@@ -132,7 +132,7 @@ exports[`validate loader options should throw an error on the "minimizer" option
- options.minimizer should be one of these:
[object { implementation?, options?, filter?, filename? }, ...] (should not have fewer than 1 item) | object { implementation?, options?, filter?, filename? }
-> Allows you to setup the minimizer function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#minimizer
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#minimizer
Details:
* options.minimizer should be an array:
[object { implementation?, options?, filter?, filename? }, ...] (should not have fewer than 1 item)
@@ -145,7 +145,7 @@ exports[`validate loader options should throw an error on the "severityError" op
- options.severityError should be one of these:
"off" | "warning" | "error"
-> Allows to choose how errors are displayed.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#severityerror"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#severityerror"
`;
exports[`validate loader options should throw an error on the "severityError" option with "[]" value 1`] = `
@@ -153,7 +153,7 @@ exports[`validate loader options should throw an error on the "severityError" op
- options.severityError should be one of these:
"off" | "warning" | "error"
-> Allows to choose how errors are displayed.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#severityerror"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#severityerror"
`;
exports[`validate loader options should throw an error on the "severityError" option with "{}" value 1`] = `
@@ -161,7 +161,7 @@ exports[`validate loader options should throw an error on the "severityError" op
- options.severityError should be one of these:
"off" | "warning" | "error"
-> Allows to choose how errors are displayed.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#severityerror"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#severityerror"
`;
exports[`validate loader options should throw an error on the "severityError" option with "false" value 1`] = `
@@ -169,7 +169,7 @@ exports[`validate loader options should throw an error on the "severityError" op
- options.severityError should be one of these:
"off" | "warning" | "error"
-> Allows to choose how errors are displayed.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#severityerror"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#severityerror"
`;
exports[`validate loader options should throw an error on the "severityError" option with "true" value 1`] = `
@@ -177,7 +177,7 @@ exports[`validate loader options should throw an error on the "severityError" op
- options.severityError should be one of these:
"off" | "warning" | "error"
-> Allows to choose how errors are displayed.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#severityerror"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#severityerror"
`;
exports[`validate loader options should throw an error on the "unknown" option with "/test/" value 1`] = `
diff --git a/test/__snapshots__/validate-plugin-options.test.js.snap b/test/__snapshots__/validate-plugin-options.test.js.snap
index 87692db..c4aec13 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 plugin options should work 1`] = `
- options.test should be one of these:
[RegExp | non-empty string, ...] | RegExp | non-empty string
-> Filtering rules.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#test
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#test
Details:
* options.test should be an array:
[RegExp | non-empty string, ...]
@@ -22,7 +22,7 @@ exports[`validate plugin options should work 2`] = `
- options.test should be one of these:
[RegExp | non-empty string, ...] | RegExp | non-empty string
-> Filtering rules.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#test
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#test
Details:
* options.test[0] should be one of these:
RegExp | non-empty string
@@ -37,7 +37,7 @@ exports[`validate plugin options should work 3`] = `
- options.include should be one of these:
[RegExp | non-empty string, ...] | RegExp | non-empty string
-> Filtering rules.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#include
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#include
Details:
* options.include should be an array:
[RegExp | non-empty string, ...]
@@ -54,7 +54,7 @@ exports[`validate plugin options should work 4`] = `
- options.include should be one of these:
[RegExp | non-empty string, ...] | RegExp | non-empty string
-> Filtering rules.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#include
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#include
Details:
* options.include[0] should be one of these:
RegExp | non-empty string
@@ -69,7 +69,7 @@ exports[`validate plugin options should work 5`] = `
- options.exclude should be one of these:
[RegExp | non-empty string, ...] | RegExp | non-empty string
-> Filtering rules.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#exclude
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#exclude
Details:
* options.exclude should be an array:
[RegExp | non-empty string, ...]
@@ -86,7 +86,7 @@ exports[`validate plugin options should work 6`] = `
- options.exclude should be one of these:
[RegExp | non-empty string, ...] | RegExp | non-empty string
-> Filtering rules.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#exclude
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#exclude
Details:
* options.exclude[0] should be one of these:
RegExp | non-empty string
@@ -101,7 +101,7 @@ exports[`validate plugin options should work 7`] = `
- options.severityError should be one of these:
"off" | "warning" | "error"
-> Allows to choose how errors are displayed.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#severityerror"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#severityerror"
`;
exports[`validate plugin options should work 8`] = `
@@ -109,7 +109,7 @@ exports[`validate plugin options should work 8`] = `
- options.severityError should be one of these:
"off" | "warning" | "error"
-> Allows to choose how errors are displayed.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#severityerror"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#severityerror"
`;
exports[`validate plugin options should work 9`] = `
@@ -117,14 +117,14 @@ exports[`validate plugin options should work 9`] = `
- options.severityError should be one of these:
"off" | "warning" | "error"
-> Allows to choose how errors are displayed.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#severityerror"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#severityerror"
`;
exports[`validate plugin options should work 10`] = `
"Invalid options object. Image Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.deleteOriginalAssets should be a boolean.
-> Allows to remove original assets after minimization.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#deleteoriginalassets"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#deleteoriginalassets"
`;
exports[`validate plugin options should work 11`] = `
@@ -132,7 +132,7 @@ exports[`validate plugin options should work 11`] = `
- options.minimizer should be one of these:
[object { implementation?, filter?, filename?, options? }, ...] (should not have fewer than 1 item) | object { implementation?, filter?, filename?, options? }
-> Allows you to setup the minimizer function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#minimizer
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#minimizer
Details:
* options.minimizer should be an array:
[object { implementation?, filter?, filename?, options? }, ...] (should not have fewer than 1 item)
@@ -157,7 +157,7 @@ exports[`validate plugin options should work 14`] = `
- options.minimizer should be one of these:
[object { implementation?, filter?, filename?, options? }, ...] (should not have fewer than 1 item) | object { implementation?, filter?, filename?, options? }
-> Allows you to setup the minimizer function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#minimizer
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#minimizer
Details:
* options.minimizer.filename should be one of these:
non-empty string | function
@@ -172,7 +172,7 @@ exports[`validate plugin options should work 15`] = `
- options.minimizer should be one of these:
[object { implementation?, filter?, filename?, options? }, ...] (should not have fewer than 1 item) | object { implementation?, filter?, filename?, options? }
-> Allows you to setup the minimizer function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#minimizer
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#minimizer
Details:
* options.minimizer.filename should be one of these:
non-empty string | function
@@ -187,7 +187,7 @@ exports[`validate plugin options should work 16`] = `
- options.generator should be an array:
[object { implementation, type?, preset?, options?, filter?, filename? }, ...] (should not have fewer than 1 item)
-> Allows you to setup the generator function and options.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#generator"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#generator"
`;
exports[`validate plugin options should work 17`] = `
@@ -223,19 +223,19 @@ exports[`validate plugin options should work 20`] = `
"Invalid options object. Image Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.concurrency should be a number.
-> Number of concurrency optimization processes in one time.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#concurrency"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#concurrency"
`;
exports[`validate plugin options should work 21`] = `
"Invalid options object. Image Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.concurrency should be a number.
-> Number of concurrency optimization processes in one time.
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#concurrency"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#concurrency"
`;
exports[`validate plugin options should work 22`] = `
"Invalid options object. Image Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.loader should be a boolean.
-> Automatically adding \`imagemin-loader\` (require for minification images using in \`url-loader\`, \`svg-url-loader\` or other).
- -> Read more at https://github.com/webpack-contrib/image-minimizer-webpack-plugin#loader"
+ -> Read more at https://github.com/webpack/image-minimizer-webpack-plugin#loader"
`;
diff --git a/test/helpers.js b/test/helpers.js
index a022e7e..d2e4077 100644
--- a/test/helpers.js
+++ b/test/helpers.js
@@ -400,7 +400,7 @@ function needSquooshTest() {
const needTest = typeof process.env.SQUOOSH_TEST !== "undefined";
// Disable tests for all and Nodejs > 16
- // see: https://github.com/webpack-contrib/image-minimizer-webpack-plugin/pull/345
+ // see: https://github.com/webpack/image-minimizer-webpack-plugin/pull/345
return needTest;
}