Class: UnifiedWebpackPluginV5
Name
UnifiedWebpackPluginV5
Description
webpack5 核心转义插件
Link
https://tw.icebreaker.top/docs/intro
Implements
Constructors
constructor
• new UnifiedWebpackPluginV5(options?
): UnifiedWebpackPluginV5
Parameters
Name | Type |
---|---|
options | UserDefinedOptions |
Returns
Defined in
webpack/BaseUnifiedPlugin/v5.ts:24
Properties
appType
• Optional
appType: AppType
Implementation of
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
Defined in
webpack/BaseUnifiedPlugin/v5.ts:21
Methods
apply
▸ apply(compiler
): void
Parameters
Name | Type |
---|---|
compiler | Compiler |
Returns
void