Webpack loader that minifies HTML using html-minifier. Current stable version 1.4.1 (last release ~2017). No active maintenance; outdated compared to modern alternatives. Key differentiator: integrates html-minifier as a webpack loader with query params support. Requires peer dependency html-minifier. Note: raw-loader usage example implies raw output; loader is synchronous and not compatible with webpack 4+ loaders API without adaptation.
npm install html-minifier-loaderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Example webpack config using html-minifier-loader with raw-loader and custom html-minifier options.
Migrate to html-minimizer-webpack-plugin (webpack 5+).
Consider using html-loader with postprocess or a modern alternative.
Use `{ loader: 'html-minifier-loader', options: { ... } }` in `use` array.Use html-loader with `esModule: false` and `sources: false` options.
Use webpack's `resolve.fallback` if using ESM configs.
Add raw-loader before html-minifier-loader in use array.
Use `{ loader: 'html-minifier-loader', options: { ... } }` inside `rules[].use`.