Skip to content

docs: update image-minimizer-webpack-plugin compatibility status to compatible#13618

Merged
chenjiahan merged 4 commits intoweb-infra-dev:mainfrom
jaehafe:docs/update-image-minimizer-compatibility
Apr 5, 2026
Merged

docs: update image-minimizer-webpack-plugin compatibility status to compatible#13618
chenjiahan merged 4 commits intoweb-infra-dev:mainfrom
jaehafe:docs/update-image-minimizer-compatibility

Conversation

@jaehafe
Copy link
Copy Markdown
Contributor

@jaehafe jaehafe commented Apr 4, 2026

Summary

  • Update image-minimizer-webpack-plugin compatibility status from PartiallyCompatible to Compatible.
  • The docs currently state "Only supports using loader standalone", but the plugin mode (optimization.minimizer) also works correctly in Rspack 2.0.0-rc.0.

Tested scenarios

Scenario Result
Multiple image formats (PNG, JPEG, WebP, SVG) O
PNG→WebP format conversion (generator mode) O
deleteOriginalAssets option O
Build cache (2nd build significantly faster) O
Multiple entries sharing the same image O
Test config used
const ImageMinimizerPlugin = require("image-minimizer-webpack-plugin");                                       
                                                                                                              
module.exports = {                                                                                            
  module: {                                                                                                   
    rules: [{ test: /\.(png|jpe?g|webp|svg)$/, type: "asset/resource" }],                                   
  },                                        
  optimization: {                       
    minimizer: [                                                                                              
      new ImageMinimizerPlugin({                                                                              
        minimizer: {                                                                                          
          implementation: ImageMinimizerPlugin.sharpMinify,                                                   
          options: { encodeOptions: { png: { quality: 50 } } },                                               
        },                                                                                                    
        loader: false,                                                                                        
      }),                                                                                                     
    ],                                                                                                      
  },                                        
};

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions Bot added the release: document release: document related release(mr only) label Apr 4, 2026
@jaehafe jaehafe force-pushed the docs/update-image-minimizer-compatibility branch from 85d06d8 to b2e582a Compare April 4, 2026 13:59
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 85d06d8525

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread tests/rspack-test/package.json
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 4, 2026

Merging this PR will not alter performance

🎉 Hooray! codspeed-node just leveled up to 5.2.0!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

✅ 9 untouched benchmarks
⏩ 28 skipped benchmarks1


Comparing jaehafe:docs/update-image-minimizer-compatibility (dda1d73) with main (a7dbf08)

Open in CodSpeed

Footnotes

  1. 28 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Copy link
Copy Markdown
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@chenjiahan chenjiahan merged commit b39f908 into web-infra-dev:main Apr 5, 2026
54 of 57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: document release: document related release(mr only)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants