Skip to content

docs(splash): run the build instead of naming the hashes - #8410

Merged
alexander-akait merged 4 commits into
webpack:mainfrom
alexander-akait:claude/webpack-docs-release-xioi5h
Sep 14, 2026
Merged

alexander-akait merged 4 commits into
webpack:mainfrom
alexander-akait:claude/webpack-docs-release-xioi5h

Conversation

@alexander-akait

Copy link
Copy Markdown
Member

Summary

The front page spent three output options on content hashes and then printed their digits in the emitted page. Nothing on the page needs them, no reader can reproduce them, and the two hashes shown were left over from a build before #8392 turned the output into ES modules — a pairing no single build produces, since output.module rewrites the chunk and therefore its [contenthash].

Since 5.111 names a page's entries after the urls its tags carry, the config is down to the one option the page's type="module" tag asks for, and the emitted names are the ones webpack gives them (index.mjs, styles.css). The room that frees goes to the two commands a first build is actually made of, which the page never showed:

npx webpack --mode development
npx webpack --mode production

Verified through webpack-cli against webpack main, not read off the source:

command emitted
npx webpack --mode development index.html (readable), index.mjs, styles.css, styles.css.map
npx webpack --mode production the same three, all [minimized], no map

Note this page is correct for 5.111 and not for 5.110.3, where the same config fails with 'output.module: true' is only allowed when 'experiments.outputModule' is enabled. That is already true of main since #8392; this change does not widen the gap, but it should go live with the release.

What kind of change does this PR introduce?

docs

Did you add tests for your changes?

No — front-page example content. Checked by running both builds and by the repo's own unit suite, prettier, markdownlint, eslint and cspell.

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?

n/a

Use of AI

Claude Code was used to build the splash example against webpack main and the released 5.110.3, to determine from those builds what the page should show, and to make the change. The emitted file names and the failure message above are real output, not inference.

🤖 Generated with Claude Code

https://claude.ai/code/session_012ee7dGaRGKqYPxUzFEEU65


Generated by Claude Code

The front page spent three output options on content hashes and then
showed their digits in the emitted page, which nothing on the page needs
and which no reader can reproduce. Since 5.111 names a page's entries
after the urls its tags carry, the config is down to the one option the
page's `type="module"` tag asks for, and the emitted names are the ones
webpack gives them.

The room that frees goes to the two commands a first build is actually
made of, which the page never showed.
@vercel

vercel Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
webpack-js-org Ready Ready Preview Sep 14, 2026 8:18am UTC

Request Review

The link went to /api/cli/#advanced-options, an anchor the CLI page no
longer carries — it documents no bail flag at all — so the link check
failed on the fragment. bail is documented under other-options, which is
where the sentence meant to send the reader.
One block with both commands made the reader hold two commands in mind
before either was explained. Each command now stands next to what it
does to the output.
@alexander-akait
alexander-akait merged commit c538972 into webpack:main Sep 14, 2026
11 checks passed

This branch was successfully deployed

1 active deployment
Preview — e23b3e75 Deployed Sep 14, 2026 by vercel[bot]
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.

1 participant