For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/template-webpack-plugin.lynxtemplateplugin.md.
This is the dev preview website. Check out the document at lynxjs.org

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

LynxTemplatePlugin class

LynxTemplatePlugin

Signature:

export declare class LynxTemplatePlugin 

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the LynxTemplatePlugin class

Properties

Property

Modifiers

Type

Description

defaultOptions

static

Readonly<Required<LynxTemplatePluginOptions>>

defaultOptions is the default options that the LynxTemplatePlugin uses.

Methods

Method

Modifiers

Description

apply(compiler)

The entry point of a webpack plugin.

convertCSSChunksToMap(cssChunks, plugins, enableCSSSelector)

static

Convert the css chunks to css map.

getAsyncChunkLayoutName(compilation, chunkId)

static

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.

getLynxTemplatePluginHooks(compilation)

static

Returns all public hooks of the Lynx template webpack plugin for the given compilation