This repository was archived by the owner on Aug 27, 2026. It is now read-only.
docs: deprecate html-loader in favor of webpack's built-in HTML support - #560
Merged
Merged
Conversation
Webpack treats HTML as a first-class module type since experiments.html defaults to "auto" in 5.109.0. Point the README at the Native HTML guide and its migration guide on webpack.js.org.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #560 +/- ##
=======================================
Coverage 93.03% 93.03%
=======================================
Files 7 7
Lines 660 660
Branches 217 216 -1
=======================================
Hits 614 614
Misses 37 37
Partials 9 9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Drop the codemod suggestion and the per-option mapping from the README notice; the migration guide is the place that tracks both.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
webpack treats HTML as a first-class module type —
experiments.htmldefaults to"auto"since 5.109.0, so.htmlfiles are parsed, the resources their attributes reference are bundled and the markup is minified in production with no loader. Adds a deprecation notice at the top of the README linking the Native HTML guide and its migration guide, and noting that"auto"leaves an.htmlrule that already has a loader alone so existing setups keep working.What kind of change does this PR introduce?
docs
Did you add tests for your changes?
n/a — README only, no code change.
Does this PR introduce a breaking change?
No.
If relevant, what needs to be documented once your changes are merged or what have you already documented?
Nothing further — https://webpack.js.org/loaders/html-loader/ is generated from this README, so the notice appears there on the next docs build. The
/loadersindex already marks the loader deprecated.Use of AI
Yes — Claude Code drafted the notice and checked every linked anchor against the guides in webpack.js.org and the
experiments.htmlversion against webpack's schema and changelog. Reviewed and edited by me before pushing.Generated by Claude Code