From ea23e88fbe6f7870ea655f83b98aec5cfcd0df06 Mon Sep 17 00:00:00 2001 From: Efim <126895483+Efim-Kapliy@users.noreply.github.com> Date: Sun, 16 Jun 2024 17:56:22 +0300 Subject: [PATCH] docs(readme): updating instructions for use docs(readme): updating instructions for use Add type property for webpack to work correctly when converting files to webp format. This addition helped me solve the problem of converting images to webp format when building a project. I hope this add-on will also help other developers when working with webpack. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bf25acc..34295dc 100644 --- a/README.md +++ b/README.md @@ -2461,6 +2461,7 @@ module.exports = { generator: [ { // You can apply generator using `?as=webp`, you can use any name and provide more options + type: 'asset', preset: "webp", implementation: ImageMinimizerPlugin.squooshGenerate, options: {