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

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

LynxEncodePlugin class

LynxEncodePlugin

Signature:

export declare class LynxEncodePlugin 

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the LynxEncodePlugin class

Properties

Property

Modifiers

Type

Description

BEFORE_EMIT_STAGE

static

number

The stage of the beforeEmit hook.

BEFORE_ENCODE_STAGE

static

number

The stage of the beforeEncode hook.

defaultOptions

static

Readonly<Required<LynxEncodePluginOptions>>

defaultOptions is the default options that the LynxEncodePlugin uses.

ENCODE_STAGE

static

number

The stage of the encode hook.

options?

protected

LynxEncodePluginOptions | undefined

(Optional)

Methods

Method

Modifiers

Description

apply(compiler)

The entry point of a webpack plugin.