Webpack loader that exports HTML as a string, automatically resolving and processing references to assets like images, scripts, and stylesheets. Current stable release is v5.1.0 (July 2024), with breaking changes in v5.0.0 (Node.js >=18.12.0 required) and v4.0.0 (Node.js >=14.15.0, updated parse5). Key differentiators: supports sources configuration for custom tag/attribute handling, preprocessor and postprocessor hooks, and integrates with webpack's asset modules. Actively maintained under webpack-contrib, with frequent updates and community support.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
No JavaScript symbol is exported; use as a webpack loader string.
ESM import is valid for webpack config files using ESM, but the loader is used as a string in rules.
CommonJS require works in webpack config; the loader can be referenced as a string.
Configures html-loader in webpack to process HTML files, resolve image sources, and minimize output.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.
No traffic data recorded yet.