Skip to content

docs: document webpack 5.107/5.108 CLI config formats and HTML module extraction#8284

Merged
alexander-akait merged 4 commits into
mainfrom
claude/webpack-docs-updates-qawiv4
Jun 26, 2026
Merged

docs: document webpack 5.107/5.108 CLI config formats and HTML module extraction#8284
alexander-akait merged 4 commits into
mainfrom
claude/webpack-docs-updates-qawiv4

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Jun 26, 2026

Copy link
Copy Markdown
Member

Summary

Documents user-facing options from the latest webpack and webpack-cli releases that were missing from the site:

  • webpack-cli 7.1.0 — loading a config from static data files (.json5, .yaml/.yml, .toml): a new "Data formats" section on the Configuration Languages page covering the extension→parser mapping, on-demand parser packages (optional peerDependencies), the missing-parser error, and --config/default-config usage with an example per format; plus the supported extensions in the CLI "Default Configurations" section. (webpack-cli #4777)
  • webpack 5.107.0 — the experimental HTML-module extraction pipeline: module.generator.html.extract and the matching output.htmlFilename / output.htmlChunkFilename filename templates (which mirror the CSS pipeline).

The other 5.107/5.108 features (defineConfig, universal/bun/deno targets, output.html, optimization.inlineExports, experiments.typescript, etc.) were already documented in #8276 on this branch.

What kind of change does this PR introduce?

docs

Did you add tests for your changes?

n/a (documentation only)

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?

Documented here in configuration/configuration-languages.mdx, api/cli.mdx, configuration/module.mdx, and configuration/output.mdx.

Use of AI

AI (Claude) was used to draft these docs. Every option's semantics, defaults, and behavior were verified against the webpack-cli 7.1.0 source / config-format tests and the webpack WebpackOptions.json schema + lib/config/defaults.js, not the changelog alone.

Cover the webpack-cli 7.1.0 ability to load static configuration from
.json5, .yaml/.yml and .toml files, including the on-demand parser
packages, and note the supported extensions in the default config lookup.
@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Jun 26, 2026 2:44pm

Request Review

Add module.generator.html.extract and the matching output.htmlFilename /
output.htmlChunkFilename templates introduced in webpack 5.107.0 for the
experimental HTML module pipeline.
@alexander-akait alexander-akait changed the title docs(cli): document JSON5, YAML and TOML config file support docs: document webpack 5.107/5.108 CLI config formats and HTML module extraction Jun 26, 2026
@alexander-akait alexander-akait merged commit b8514a7 into main Jun 26, 2026
9 checks passed
@alexander-akait alexander-akait deleted the claude/webpack-docs-updates-qawiv4 branch June 26, 2026 14:57
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