# html-loader: what changed from 4 to 5 - Product: html-loader (https://whatsnew.fyi/product/html-loader) - Vendor: webpack - Range: changelog entries numbered after v4.2.0 up to and including v5.1.0, stable releases only - Entries below: 2 releases (newest first) - Resolved: 4 is v4.2.0 and 5 is v5.1.0, the newest stable release of each major we track - Carrying security changes: 0 · CVEs mentioned: 0 · Mentioning breaking changes: 1 · Removing or deprecating something: 0 - Page: https://whatsnew.fyi/product/html-loader/compare/4...5 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. ## What changed (5 changes, grouped by kind) ### Added #### v5.1.0 (2024-07-25) - Add the postprocessor option - Support absolute URLs and DataURI ### Changed #### v5.1.0 (2024-07-25) - Reduce runtime code - Use template literals in code when supported #### v5.0.0 (2024-01-16) - minimum supported Node.js version is 18.12.0 ## Release notes ### v5.1.0 - Date: 2024-07-25 - Version: v5.1.0 - Original notes: https://github.com/webpack/html-loader/releases/tag/v5.1.0 - Permalink: https://whatsnew.fyi/product/html-loader/releases/v5.1.0 - **added** — Add the postprocessor option - **changed** — Reduce runtime code - **added** — Support absolute URLs and DataURI - **changed** — Use template literals in code when supported ##### [5.1.0](https://github.com/webpack-contrib/html-loader/compare/v5.0.0...v5.1.0) (2024-07-25) ###### Features * added the `postprocessor` option ([#518](https://github.com/webpack-contrib/html-loader/issues/518)) ([536a204](https://github.com/webpack-contrib/html-loader/commit/536a204696c655b500c4805db8e857ac28aab7ed)) * reduce runtime code ([61f9a69](https://github.com/webpack-contrib/html-loader/commit/61f9a69a60196abdc85afaa8658faf7736cf08a9)) * support absolute URLs and DataURI ([#519](https://github.com/webpack-contrib/html-loader/issues/519)) ([cc34b06](https://github.com/webpack-contrib/html-loader/commit/cc34b068accee66d2f8ef10fb03ed90b866395db)) * using template literals in code when it supported ([#520](https://github.com/webpack-contrib/html-loader/issues/520)) ([6fa80d5](https://github.com/webpack-contrib/html-loader/commit/6fa80d51fed22613c39ffb240a0e875c9151b5b6)) ### v5.0.0 - Date: 2024-01-16 - Version: v5.0.0 - Original notes: https://github.com/webpack/html-loader/releases/tag/v5.0.0 - Permalink: https://whatsnew.fyi/product/html-loader/releases/v5.0.0 - **changed** — minimum supported Node.js version is 18.12.0 ##### [5.0.0](https://github.com/webpack-contrib/html-loader/compare/v4.2.0...v5.0.0) (2024-01-16) ###### ⚠ BREAKING CHANGES * minimum supported Node.js version is `18.12.0` ([#504](https://github.com/webpack-contrib/html-loader/issues/504)) ([c82cfea](https://github.com/webpack-contrib/html-loader/commit/c82cfea0913aaf303d044c3a16f9b631dce5bc76))