weapp-tailwindcss-webpack-plugin
Classes
Interfaces
- IArbitraryValues
- IBaseWebpackPlugin
- ICommonReplaceOptions
- ILengthUnitsPatchDangerousOptions
- ILengthUnitsPatchOptions
- IMangleOptions
- IMangleScopeContext
- IPropValue
- ITemplateHandlerOptions
- InternalCssSelectorReplacerOptions
- InternalPatchResult
- RawSource
- UserDefinedOptions
Type Aliases
AppType
Ƭ AppType: "uni-app"
| "uni-app-vite"
| "taro"
| "remax"
| "rax"
| "native"
| "kbone"
| "mpx"
Defined in
CreateJsHandlerOptions
Ƭ CreateJsHandlerOptions: Omit
<IJsHandlerOptions
, "classNameSet"
>
Defined in
CssPreflightOptions
Ƭ CssPreflightOptions: { [key: CssPresetProps]
: string
| number
| boolean
; } | false
Defined in
CssPresetProps
Ƭ CssPresetProps: string
Defined in
CustomRuleCallback
Ƭ CustomRuleCallback: (node
: Rule
, options
: Readonly
<RequiredStyleHandlerOptions
>) => void
Type declaration
▸ (node
, options
): void
Parameters
Name | Type |
---|---|
node | Rule |
options | Readonly <RequiredStyleHandlerOptions > |
Returns
void
Defined in
GlobOrFunctionMatchers
Ƭ GlobOrFunctionMatchers: "htmlMatcher"
| "cssMatcher"
| "jsMatcher"
| "mainCssChunkMatcher"
| "wxsMatcher"
Defined in
ICustomAttributes
Ƭ ICustomAttributes: Record
<string
, ItemOrItemArray
<string
| RegExp
>> | Map
<string
| RegExp
, ItemOrItemArray
<string
| RegExp
>>
Defined in
ICustomAttributesEntities
Ƭ ICustomAttributesEntities: [string
| RegExp
, ItemOrItemArray
<string
| RegExp
>][]
Defined in
IJsHandlerOptions
Ƭ IJsHandlerOptions: Object
Type declaration
Name | Type |
---|---|
arbitraryValues? | IArbitraryValues |
classNameSet | Set <string > |
escapeMap? | Record <string , string > |
generateMap? | boolean |
jsPreserveClass? | (keyword : string ) => boolean | undefined |
mangleContext? | IMangleScopeContext |
minifiedJs? | boolean |
needEscaped? | boolean |
strategy? | UserDefinedOptions ["jsEscapeStrategy" ] |
Defined in
IStyleHandlerOptions
Ƭ IStyleHandlerOptions: { customRuleCallback?
: CustomRuleCallback
; mangleContext?
: IMangleScopeContext
} & RequiredStyleHandlerOptions
Defined in
InternalPostcssOptions
Ƭ InternalPostcssOptions: Pick
<UserDefinedOptions
, "cssMatcher"
| "mainCssChunkMatcher"
| "cssPreflight"
| "replaceUniversalSelectorWith"
| "cssPreflightRange"
| "customRuleCallback"
| "disabled"
>
Defined in
InternalUserDefinedOptions
Ƭ InternalUserDefinedOptions: Required
<Omit
<UserDefinedOptions
, GlobOrFunctionMatchers
| "supportCustomLengthUnitsPatch"
| "customReplaceDictionary"
> & { [K in GlobOrFunctionMatchers]: K extends "mainCssChunkMatcher" ? Function : Function } & { 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
: ILengthUnitsPatchOptions
| false
; templateHandler
: (rawSource
: string
, options?
: ITemplateHandlerOptions
) => string
}>
Defined in
ItemOrItemArray
Ƭ ItemOrItemArray<T
>: T
| T
[]
Type parameters
Name |
---|
T |
Defined in
JsHandler
Ƭ JsHandler: (rawSource
: string
, set
: Set
<string
>, options?
: CreateJsHandlerOptions
) => JsHandlerResult
Type declaration
▸ (rawSource
, set
, options?
): JsHandlerResult
Parameters
Name | Type |
---|---|
rawSource | string |
set | Set <string > |
options? | CreateJsHandlerOptions |