跳到主要内容

Class: UnifiedWebpackPluginV5

Name

UnifiedWebpackPluginV5

Description

webpack5 核心转义插件

Link

https://tw.icebreaker.top/docs/intro

Implements

Constructors

constructor

new UnifiedWebpackPluginV5(options?): UnifiedWebpackPluginV5

Parameters

NameType
optionsUserDefinedOptions

Returns

UnifiedWebpackPluginV5

Defined in

webpack/BaseUnifiedPlugin/v5.ts:24

Properties

appType

Optional appType: AppType

Implementation of

IBaseWebpackPlugin.appType

Defined in

webpack/BaseUnifiedPlugin/v5.ts:22


options

options: Required<Omit<UserDefinedOptions, "customReplaceDictionary" | "supportCustomLengthUnitsPatch" | GlobOrFunctionMatchers> & { cssMatcher: (name: string) => boolean ; htmlMatcher: (name: string) => boolean ; jsMatcher: (name: string) => boolean ; mainCssChunkMatcher: (name: string, appType?: AppType) => boolean ; wxsMatcher: (name: string) => boolean } & { cache: ICreateCacheReturnType ; customReplaceDictionary: Record<string, string> ; escapeMap: Record<string, string> ; jsHandler: JsHandler ; patch: () => void ; setMangleRuntimeSet: (runtimeSet: Set<string>) => void ; styleHandler: (rawSource: string, options: IStyleHandlerOptions) => Promise<string> ; supportCustomLengthUnitsPatch: false | ILengthUnitsPatchOptions ; templateHandler: (rawSource: string, options?: ITemplateHandlerOptions) => string }>

Implementation of

IBaseWebpackPlugin.options

Defined in

webpack/BaseUnifiedPlugin/v5.ts:21

Methods

apply

apply(compiler): void

Parameters

NameType
compilerCompiler

Returns

void

Implementation of

IBaseWebpackPlugin.apply

Defined in

webpack/BaseUnifiedPlugin/v5.ts:32