├── .cspell.json ├── .editorconfig ├── .gitattributes ├── .github └── workflows │ ├── dependency-review.yml │ └── nodejs.yml ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .prettierignore ├── .remarkrc.js ├── CHANGELOG.md ├── LICENSE ├── README.md ├── babel.config.js ├── commitlint.config.js ├── eslint.config.mjs ├── jest.config.js ├── lint-staged.config.js ├── package.json ├── src ├── index.js ├── loader-options.json ├── loader.js ├── plugin-options.json ├── squoosh-lib.d.ts ├── utils.js └── worker.js ├── test ├── .eslintrc.json ├── ImageminPlugin.test.js ├── __snapshots__ │ ├── ImageminPlugin.test.js.snap │ ├── api.test.js.snap │ ├── validate-loader-options.test.js.snap │ └── validate-plugin-options.test.js.snap ├── api.test.js ├── fixtures │ ├── EmitWepbackPlugin.js │ ├── animation-test.gif │ ├── asset-inline.js │ ├── cache │ │ └── absolute-url │ │ │ ├── https_cdn.jsdelivr.net │ │ │ └── gh_webpack_media_e7485eb2_logo_icon_bddc4456f7d21daf0df8.svg │ │ │ ├── https_upload.wikimedia.org │ │ │ ├── wikipedia_commons_4_47_PNG_transparency_demonstration_1_foo_bar_as_webp_1a8ac3df16c88ee1d867.png │ │ │ └── wikipedia_commons_7_70_Example_as_webp_186c80a4861cd02a331c.png │ │ │ └── lock.json │ ├── child-compilation-image.png │ ├── child-compilation.js │ ├── emit-asset-in-child-compilation-loader.js │ ├── emitAssetLoader.js │ ├── empty-entry.js │ ├── entry-with-css.js │ ├── generator-and-minimizer-2.js │ ├── generator-and-minimizer-3.js │ ├── generator-and-minimizer-4.js │ ├── generator-and-minimizer-5.js │ ├── generator-and-minimizer-6.js │ ├── generator-and-minimizer-7.js │ ├── generator-and-minimizer-animation.js │ ├── generator-and-minimizer-percent-resize-query.js │ ├── generator-and-minimizer-resize-query.js │ ├── generator-and-minimizer.js │ ├── generator-asset-modules.js │ ├── generator.js │ ├── large-after-optimization.svg │ ├── loader-corrupted.js │ ├── loader-other-imports-1.js │ ├── loader-other-imports.js │ ├── loader-single.js │ ├── loader-test.css │ ├── loader-test.gif │ ├── loader-test.jpg │ ├── loader-test.json │ ├── loader-test.png │ ├── loader-test.svg │ ├── loader-test.txt │ ├── loader-test.unknown │ ├── loader-with-child.js │ ├── loader.js │ ├── minimizer-only-corrupted.js │ ├── minimizer-only.js │ ├── multiple-entry-2.js │ ├── multiple-entry.js │ ├── multiple-loader-test-1.svg │ ├── multiple-loader-test-2.svg │ ├── multiple-loader-test-3.svg │ ├── multiple-loader-test-4.svg │ ├── multiple-plugin-test-1.svg │ ├── multiple-plugin-test-2.svg │ ├── multiple-plugin-test-3.svg │ ├── multiple-plugin-test-4.svg │ ├── nested │ │ ├── deep │ │ │ ├── loader-test.gif │ │ │ ├── loader-test.jpg │ │ │ ├── loader-test.json │ │ │ ├── loader-test.png │ │ │ ├── loader-test.svg │ │ │ ├── loader.js │ │ │ └── plugin-test.png │ │ └── multiple-loader-test-4.svg │ ├── newImg.png │ ├── plugin-test.gif │ ├── plugin-test.jpg │ ├── plugin-test.png │ ├── plugin-test.svg │ ├── simple-emit.js │ ├── simple.js │ ├── single-image-loader.js │ ├── style.css │ ├── svg-and-jpg.js │ ├── svg-with-id.svg │ ├── svgo-id.svg │ ├── svgo-prefix-id.js │ ├── test-corrupted.jpg │ ├── test-corrupted.svg │ ├── unknown-and-jpg.js │ ├── url.png │ └── validate-options.js ├── helpers.js ├── imagemin-base64.js ├── loader-generator-option.test.js ├── loader-minimizer-option.test.js ├── loader-severityError-option.test.js ├── loader.test.js ├── plugin-deleteOriginalAssets-option.test.js ├── plugin-loader-option.test.js ├── plugin-minimizer-option.test.js ├── plugin-severityError-option.test.js ├── resize-query.test.js ├── utils.test.js ├── validate-loader-options.test.js ├── validate-plugin-options.test.js └── worker.test.js ├── tsconfig.json └── types ├── index.d.ts ├── loader.d.ts ├── utils.d.ts └── worker.d.ts /.cspell.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/.cspell.json -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/dependency-review.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/.github/workflows/dependency-review.yml -------------------------------------------------------------------------------- /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/.github/workflows/nodejs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | commitlint --edit $1 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | lint-staged 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/.prettierignore -------------------------------------------------------------------------------- /.remarkrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: ["remark-preset-lint-itgalaxy"], 3 | }; 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/babel.config.js -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/commitlint.config.js -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/jest.config.js -------------------------------------------------------------------------------- /lint-staged.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/lint-staged.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/package.json -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/src/index.js -------------------------------------------------------------------------------- /src/loader-options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/src/loader-options.json -------------------------------------------------------------------------------- /src/loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/src/loader.js -------------------------------------------------------------------------------- /src/plugin-options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/src/plugin-options.json -------------------------------------------------------------------------------- /src/squoosh-lib.d.ts: -------------------------------------------------------------------------------- 1 | declare module "@squoosh/lib"; 2 | -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/src/utils.js -------------------------------------------------------------------------------- /src/worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/src/worker.js -------------------------------------------------------------------------------- /test/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/.eslintrc.json -------------------------------------------------------------------------------- /test/ImageminPlugin.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/ImageminPlugin.test.js -------------------------------------------------------------------------------- /test/__snapshots__/ImageminPlugin.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/__snapshots__/ImageminPlugin.test.js.snap -------------------------------------------------------------------------------- /test/__snapshots__/api.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/__snapshots__/api.test.js.snap -------------------------------------------------------------------------------- /test/__snapshots__/validate-loader-options.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/__snapshots__/validate-loader-options.test.js.snap -------------------------------------------------------------------------------- /test/__snapshots__/validate-plugin-options.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/__snapshots__/validate-plugin-options.test.js.snap -------------------------------------------------------------------------------- /test/api.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/api.test.js -------------------------------------------------------------------------------- /test/fixtures/EmitWepbackPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/EmitWepbackPlugin.js -------------------------------------------------------------------------------- /test/fixtures/animation-test.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/animation-test.gif -------------------------------------------------------------------------------- /test/fixtures/asset-inline.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/asset-inline.js -------------------------------------------------------------------------------- /test/fixtures/cache/absolute-url/https_cdn.jsdelivr.net/gh_webpack_media_e7485eb2_logo_icon_bddc4456f7d21daf0df8.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/cache/absolute-url/https_cdn.jsdelivr.net/gh_webpack_media_e7485eb2_logo_icon_bddc4456f7d21daf0df8.svg -------------------------------------------------------------------------------- /test/fixtures/cache/absolute-url/https_upload.wikimedia.org/wikipedia_commons_4_47_PNG_transparency_demonstration_1_foo_bar_as_webp_1a8ac3df16c88ee1d867.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/cache/absolute-url/https_upload.wikimedia.org/wikipedia_commons_4_47_PNG_transparency_demonstration_1_foo_bar_as_webp_1a8ac3df16c88ee1d867.png -------------------------------------------------------------------------------- /test/fixtures/cache/absolute-url/https_upload.wikimedia.org/wikipedia_commons_7_70_Example_as_webp_186c80a4861cd02a331c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/cache/absolute-url/https_upload.wikimedia.org/wikipedia_commons_7_70_Example_as_webp_186c80a4861cd02a331c.png -------------------------------------------------------------------------------- /test/fixtures/cache/absolute-url/lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/cache/absolute-url/lock.json -------------------------------------------------------------------------------- /test/fixtures/child-compilation-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/child-compilation-image.png -------------------------------------------------------------------------------- /test/fixtures/child-compilation.js: -------------------------------------------------------------------------------- 1 | export default "foobar"; 2 | -------------------------------------------------------------------------------- /test/fixtures/emit-asset-in-child-compilation-loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/emit-asset-in-child-compilation-loader.js -------------------------------------------------------------------------------- /test/fixtures/emitAssetLoader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/emitAssetLoader.js -------------------------------------------------------------------------------- /test/fixtures/empty-entry.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/entry-with-css.js: -------------------------------------------------------------------------------- 1 | import "./style.css"; 2 | -------------------------------------------------------------------------------- /test/fixtures/generator-and-minimizer-2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/generator-and-minimizer-2.js -------------------------------------------------------------------------------- /test/fixtures/generator-and-minimizer-3.js: -------------------------------------------------------------------------------- 1 | require("./loader-test.png?as=webp-other"); 2 | -------------------------------------------------------------------------------- /test/fixtures/generator-and-minimizer-4.js: -------------------------------------------------------------------------------- 1 | require("./loader-test.png?as=avif"); 2 | -------------------------------------------------------------------------------- /test/fixtures/generator-and-minimizer-5.js: -------------------------------------------------------------------------------- 1 | require("./loader-test.txt?as=avif"); 2 | -------------------------------------------------------------------------------- /test/fixtures/generator-and-minimizer-6.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/generator-and-minimizer-6.js -------------------------------------------------------------------------------- /test/fixtures/generator-and-minimizer-7.js: -------------------------------------------------------------------------------- 1 | require("./loader-test.svg?as=webp"); 2 | -------------------------------------------------------------------------------- /test/fixtures/generator-and-minimizer-animation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/generator-and-minimizer-animation.js -------------------------------------------------------------------------------- /test/fixtures/generator-and-minimizer-percent-resize-query.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/generator-and-minimizer-percent-resize-query.js -------------------------------------------------------------------------------- /test/fixtures/generator-and-minimizer-resize-query.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/generator-and-minimizer-resize-query.js -------------------------------------------------------------------------------- /test/fixtures/generator-and-minimizer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/generator-and-minimizer.js -------------------------------------------------------------------------------- /test/fixtures/generator-asset-modules.js: -------------------------------------------------------------------------------- 1 | console.log(new URL("../fixtures/loader-test.png?as=webp", import.meta.url)); -------------------------------------------------------------------------------- /test/fixtures/generator.js: -------------------------------------------------------------------------------- 1 | require("./loader-test.png?as=webp"); 2 | -------------------------------------------------------------------------------- /test/fixtures/large-after-optimization.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/large-after-optimization.svg -------------------------------------------------------------------------------- /test/fixtures/loader-corrupted.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/loader-corrupted.js -------------------------------------------------------------------------------- /test/fixtures/loader-other-imports-1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/loader-other-imports-1.js -------------------------------------------------------------------------------- /test/fixtures/loader-other-imports.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/loader-other-imports.js -------------------------------------------------------------------------------- /test/fixtures/loader-single.js: -------------------------------------------------------------------------------- 1 | require("./nested/deep/loader-test.jpg?as=webp"); 2 | -------------------------------------------------------------------------------- /test/fixtures/loader-test.css: -------------------------------------------------------------------------------- 1 | a { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/loader-test.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/loader-test.gif -------------------------------------------------------------------------------- /test/fixtures/loader-test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/loader-test.jpg -------------------------------------------------------------------------------- /test/fixtures/loader-test.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/loader-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/loader-test.png -------------------------------------------------------------------------------- /test/fixtures/loader-test.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/loader-test.svg -------------------------------------------------------------------------------- /test/fixtures/loader-test.txt: -------------------------------------------------------------------------------- 1 | TEXT 2 | -------------------------------------------------------------------------------- /test/fixtures/loader-test.unknown: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/loader-with-child.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/loader-with-child.js -------------------------------------------------------------------------------- /test/fixtures/loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/loader.js -------------------------------------------------------------------------------- /test/fixtures/minimizer-only-corrupted.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/minimizer-only-corrupted.js -------------------------------------------------------------------------------- /test/fixtures/minimizer-only.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/minimizer-only.js -------------------------------------------------------------------------------- /test/fixtures/multiple-entry-2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/multiple-entry-2.js -------------------------------------------------------------------------------- /test/fixtures/multiple-entry.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/multiple-entry.js -------------------------------------------------------------------------------- /test/fixtures/multiple-loader-test-1.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/multiple-loader-test-1.svg -------------------------------------------------------------------------------- /test/fixtures/multiple-loader-test-2.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/multiple-loader-test-2.svg -------------------------------------------------------------------------------- /test/fixtures/multiple-loader-test-3.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/multiple-loader-test-3.svg -------------------------------------------------------------------------------- /test/fixtures/multiple-loader-test-4.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/multiple-loader-test-4.svg -------------------------------------------------------------------------------- /test/fixtures/multiple-plugin-test-1.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/multiple-plugin-test-1.svg -------------------------------------------------------------------------------- /test/fixtures/multiple-plugin-test-2.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/multiple-plugin-test-2.svg -------------------------------------------------------------------------------- /test/fixtures/multiple-plugin-test-3.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/multiple-plugin-test-3.svg -------------------------------------------------------------------------------- /test/fixtures/multiple-plugin-test-4.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/multiple-plugin-test-4.svg -------------------------------------------------------------------------------- /test/fixtures/nested/deep/loader-test.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/nested/deep/loader-test.gif -------------------------------------------------------------------------------- /test/fixtures/nested/deep/loader-test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/nested/deep/loader-test.jpg -------------------------------------------------------------------------------- /test/fixtures/nested/deep/loader-test.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/nested/deep/loader-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/nested/deep/loader-test.png -------------------------------------------------------------------------------- /test/fixtures/nested/deep/loader-test.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/nested/deep/loader-test.svg -------------------------------------------------------------------------------- /test/fixtures/nested/deep/loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/nested/deep/loader.js -------------------------------------------------------------------------------- /test/fixtures/nested/deep/plugin-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/nested/deep/plugin-test.png -------------------------------------------------------------------------------- /test/fixtures/nested/multiple-loader-test-4.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/nested/multiple-loader-test-4.svg -------------------------------------------------------------------------------- /test/fixtures/newImg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/newImg.png -------------------------------------------------------------------------------- /test/fixtures/plugin-test.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/plugin-test.gif -------------------------------------------------------------------------------- /test/fixtures/plugin-test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/plugin-test.jpg -------------------------------------------------------------------------------- /test/fixtures/plugin-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/plugin-test.png -------------------------------------------------------------------------------- /test/fixtures/plugin-test.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/plugin-test.svg -------------------------------------------------------------------------------- /test/fixtures/simple-emit.js: -------------------------------------------------------------------------------- 1 | export default 'foo'; 2 | -------------------------------------------------------------------------------- /test/fixtures/simple.js: -------------------------------------------------------------------------------- 1 | require("./loader-test.jpg"); 2 | -------------------------------------------------------------------------------- /test/fixtures/single-image-loader.js: -------------------------------------------------------------------------------- 1 | require("./loader-test.jpg?as=webp"); 2 | -------------------------------------------------------------------------------- /test/fixtures/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/style.css -------------------------------------------------------------------------------- /test/fixtures/svg-and-jpg.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/svg-and-jpg.js -------------------------------------------------------------------------------- /test/fixtures/svg-with-id.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/svg-with-id.svg -------------------------------------------------------------------------------- /test/fixtures/svgo-id.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/svgo-id.svg -------------------------------------------------------------------------------- /test/fixtures/svgo-prefix-id.js: -------------------------------------------------------------------------------- 1 | console.log(new URL("../fixtures/svgo-id.svg", import.meta.url)); 2 | -------------------------------------------------------------------------------- /test/fixtures/test-corrupted.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/test-corrupted.jpg -------------------------------------------------------------------------------- /test/fixtures/test-corrupted.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/test-corrupted.svg -------------------------------------------------------------------------------- /test/fixtures/unknown-and-jpg.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/unknown-and-jpg.js -------------------------------------------------------------------------------- /test/fixtures/url.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/url.png -------------------------------------------------------------------------------- /test/fixtures/validate-options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/fixtures/validate-options.js -------------------------------------------------------------------------------- /test/helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/helpers.js -------------------------------------------------------------------------------- /test/imagemin-base64.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/imagemin-base64.js -------------------------------------------------------------------------------- /test/loader-generator-option.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/loader-generator-option.test.js -------------------------------------------------------------------------------- /test/loader-minimizer-option.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/loader-minimizer-option.test.js -------------------------------------------------------------------------------- /test/loader-severityError-option.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/loader-severityError-option.test.js -------------------------------------------------------------------------------- /test/loader.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/loader.test.js -------------------------------------------------------------------------------- /test/plugin-deleteOriginalAssets-option.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/plugin-deleteOriginalAssets-option.test.js -------------------------------------------------------------------------------- /test/plugin-loader-option.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/plugin-loader-option.test.js -------------------------------------------------------------------------------- /test/plugin-minimizer-option.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/plugin-minimizer-option.test.js -------------------------------------------------------------------------------- /test/plugin-severityError-option.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/plugin-severityError-option.test.js -------------------------------------------------------------------------------- /test/resize-query.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/resize-query.test.js -------------------------------------------------------------------------------- /test/utils.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/utils.test.js -------------------------------------------------------------------------------- /test/validate-loader-options.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/validate-loader-options.test.js -------------------------------------------------------------------------------- /test/validate-plugin-options.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/validate-plugin-options.test.js -------------------------------------------------------------------------------- /test/worker.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/test/worker.test.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/types/index.d.ts -------------------------------------------------------------------------------- /types/loader.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/types/loader.d.ts -------------------------------------------------------------------------------- /types/utils.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/types/utils.d.ts -------------------------------------------------------------------------------- /types/worker.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/image-minimizer-webpack-plugin/HEAD/types/worker.d.ts --------------------------------------------------------------------------------