这是开发预览网站。请访问正式文档 lynxjs.org

Home > @lynx-js/template-webpack-plugin > LynxTemplatePlugin > getAsyncChunkLayoutName

LynxTemplatePlugin.getAsyncChunkLayoutName() method

Map an async chunk id to <lazy bundle name>/<layer>, used to route a lazy bundle's intermediate js/css/hmr outputs into a single per-bundle directory. Returns undefined for non-lazy chunks.

Signature:

static getAsyncChunkLayoutName(compilation: Compilation, chunkId: string | number): string | undefined;

Parameters

Parameter

Type

Description

compilation

Compilation

chunkId

string | number

Returns:

string | undefined