这是开发预览网站。请访问正式文档 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.

getLynxTemplatePluginHooks(compilation)

static

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