{"library":"html-minimizer-webpack-plugin","type":"library","category":null,"description":"Webpack plugin (v6.0.0) that minifies HTML files using one of three engines: swc (Rust), html-minifier-terser (JavaScript, default), or @minify-html/node (Rust). Integrates into Webpack's optimization.minimizer pipeline. Requires Node >= 20.9.0 (v6), Webpack 5.1+. Provides TypeScript types. Releases: v6.0.0 (Mar 2026), v5.0.x (2025), v5.0.0 (Jan 2024, dropped Node <18.12.0). Differentiators: multi-engine support, deep Webpack integration, asset/resource compatibility.","language":"javascript","status":"active","version":"6.0.0","tags":["javascript","html","webpack","webpack-plugin","minimize","minimizer","minify","minifier","optimize","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install html-minimizer-webpack-plugin","imports":["import HtmlMinimizerPlugin from 'html-minimizer-webpack-plugin'","import HtmlMinimizerPlugin from 'html-minimizer-webpack-plugin';\nconst { swcMinify } = HtmlMinimizerPlugin;","HtmlMinimizerPlugin.swcMinifyFragment"]},{"cmd":"yarn add html-minimizer-webpack-plugin","imports":[]},{"cmd":"pnpm add html-minimizer-webpack-plugin","imports":[]}],"homepage":null,"github":"https://github.com/webpack/html-minimizer-webpack-plugin","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/html-minimizer-webpack-plugin","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/html-minimizer-webpack-plugin/compatibility"}}