For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/template-webpack-plugin.lynxtemplatepluginoptions.customsectionnaming.md.
这是开发预览网站。请访问正式文档 lynxjs.org

Home > @lynx-js/template-webpack-plugin > LynxTemplatePluginOptions > customSectionNaming

LynxTemplatePluginOptions.customSectionNaming property

Assemble every chunk into a custom section, named by this strategy.

Signature:

customSectionNaming?: ((compilation: Compilation) => CustomSectionNaming) | undefined;

Remarks

A bundle assembled this way carries no lepusCode, and only the chunks left unnamed stay in the manifest. A FetchBundle lazy bundle is assembled this way by default, under the three section names its runtime resolves.