docs: document webpack 5.107/5.108 CLI config formats and HTML module extraction#8284
Merged
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Documents user-facing options from the latest webpack and webpack-cli releases that were missing from the site:
.json5,.yaml/.yml,.toml): a new "Data formats" section on the Configuration Languages page covering the extension→parser mapping, on-demand parser packages (optionalpeerDependencies), 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)module.generator.html.extractand the matchingoutput.htmlFilename/output.htmlChunkFilenamefilename templates (which mirror the CSS pipeline).The other 5.107/5.108 features (
defineConfig,universal/bun/denotargets,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, andconfiguration/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-formattests and the webpackWebpackOptions.jsonschema +lib/config/defaults.js, not the changelog alone.