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

LynxEncodePlugin class

LynxEncodePlugin

Signature:

export declare class LynxEncodePlugin 

Constructors

ConstructorModifiersDescription
(constructor)(options)Constructs a new instance of the LynxEncodePlugin class

Properties

PropertyModifiersTypeDescription
BEFORE_EMIT_STAGEstaticnumberThe stage of the beforeEmit hook.
BEFORE_ENCODE_STAGEstaticnumberThe stage of the beforeEncode hook.
defaultOptionsstaticReadonly<Required<LynxEncodePluginOptions>>defaultOptions is the default options that the LynxEncodePlugin uses.
ENCODE_STAGEstaticnumberThe stage of the encode hook.
options?protectedLynxEncodePluginOptions | undefined(Optional)

Methods

MethodModifiersDescription
apply(compiler)The entry point of a webpack plugin.
encodeCSS(cssChunks, options, plugins, encode)staticEncode CSS chunks into a template.