Skip to content

docs(magic-comments): document webpackIgnore support in HTML modules#8241

Closed
bjohansebas wants to merge 1 commit into
mainfrom
docs/webpack-ignore-html
Closed

docs(magic-comments): document webpackIgnore support in HTML modules#8241
bjohansebas wants to merge 1 commit into
mainfrom
docs/webpack-ignore-html

Conversation

@bjohansebas
Copy link
Copy Markdown
Member

Summary

Webpack 5.107 supports the webpackIgnore magic comment inside HTML modules (when experiments.html is enabled). Placing <!-- webpackIgnore: true --> before a tag skips URL resolution for its src / href / srcset attributes, leaving the tag untouched in the emitted HTML.

Adds a new "HTML Usage" section under the existing webpackIgnore docs in api/module-methods.mdx, mirroring the existing JavaScript Usage and CSS Usage sections.

Refs: webpack/webpack#20950

Test plan

  • Visual check of the new HTML Usage section
  • Verify the badge shows "5.107.0+"

@vercel
Copy link
Copy Markdown

vercel Bot commented May 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment May 17, 2026 2:38am

Request Review

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 17, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: bjohansebas / name: Sebastian Beltran (596fbe3)

Webpack 5.107 supports the webpackIgnore magic comment inside HTML
modules (when experiments.html is enabled). Placing
<!-- webpackIgnore: true --> before a tag skips URL resolution for its
src/href/srcset attributes, leaving the tag untouched in the emitted
HTML. Adds a new HTML Usage section under the existing webpackIgnore
docs in api/module-methods.

Refs: webpack/webpack#20950
@alexander-akait
Copy link
Copy Markdown
Member

Let's make rebase to fix lint

@bjohansebas
Copy link
Copy Markdown
Member Author

Closing in favor of #8243, which now includes the webpackIgnore HTML Usage docs alongside the experiments.html section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants