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 |
Returns
Defined in
JsHandlerReplaceResult
Ƭ JsHandlerReplaceResult: Object
Type declaration
Name | Type |
---|---|
code | string |
map? | SourceMap |
Defined in
JsHandlerResult
Ƭ JsHandlerResult: JsHandlerReplaceResult
| GeneratorResult
Defined in
RequiredStyleHandlerOptions
Ƭ RequiredStyleHandlerOptions: { cssInjectPreflight?
: InjectPreflight
; escapeMap?
: Record
<string
, string
> ; isMainChunk
: boolean
} & Pick
<UserDefinedOptions
, "cssPreflightRange"
| "cssChildCombinatorReplaceValue"
| "replaceUniversalSelectorWith"
| "injectAdditionalCssVarScope"
| "cssSelectorReplacement"
>
Defined in
Functions
UnifiedViteWeappTailwindcssPlugin
▸ UnifiedViteWeappTailwindcssPlugin(options?
): Plugin
| undefined
Parameters
Name | Type |
---|---|
options | UserDefinedOptions |
Returns
Plugin
| undefined
Name
UnifiedViteWeappTailwindcssPlugin
Description
uni-app vite vue3 版本插件
Link
https://tw.icebreaker.top/docs/quick-start/frameworks/uni-app-vite
Defined in
createPlugins
▸ createPlugins(options?
): Object
Parameters
Name | Type |
---|---|
options | UserDefinedOptions |
Returns
Object
Name | Type |
---|---|
transformJs | () => Transform |
transformWxml | () => Transform |
transformWxss | () => Transform |
Name
weapp-tw-gulp
Description
gulp版本weapp-tw插件
Link
https://tw.icebreaker.top/docs/quick-start/frameworks/native