跳到主要内容

weapp-tailwindcss-webpack-plugin

Classes

Interfaces

Type Aliases

AppType

Ƭ AppType: "uni-app" | "uni-app-vite" | "taro" | "remax" | "rax" | "native" | "kbone" | "mpx"

Defined in

types.ts:10


CreateJsHandlerOptions

Ƭ CreateJsHandlerOptions: Omit<IJsHandlerOptions, "classNameSet">

Defined in

types.ts:502


CssPreflightOptions

Ƭ CssPreflightOptions: { [key: CssPresetProps]: string | number | boolean; } | false

Defined in

types.ts:19


CssPresetProps

Ƭ CssPresetProps: string

Defined in

types.ts:17


CustomRuleCallback

Ƭ CustomRuleCallback: (node: Rule, options: Readonly<RequiredStyleHandlerOptions>) => void

Type declaration

▸ (node, options): void

Parameters
NameType
nodeRule
optionsReadonly<RequiredStyleHandlerOptions>
Returns

void

Defined in

types.ts:34


GlobOrFunctionMatchers

Ƭ GlobOrFunctionMatchers: "htmlMatcher" | "cssMatcher" | "jsMatcher" | "mainCssChunkMatcher" | "wxsMatcher"

Defined in

types.ts:460


ICustomAttributes

Ƭ ICustomAttributes: Record<string, ItemOrItemArray<string | RegExp>> | Map<string | RegExp, ItemOrItemArray<string | RegExp>>

Defined in

types.ts:50


ICustomAttributesEntities

Ƭ ICustomAttributesEntities: [string | RegExp, ItemOrItemArray<string | RegExp>][]

Defined in

types.ts:52


IJsHandlerOptions

Ƭ IJsHandlerOptions: Object

Type declaration

NameType
arbitraryValues?IArbitraryValues
classNameSetSet<string>
escapeMap?Record<string, string>
generateMap?boolean
jsPreserveClass?(keyword: string) => boolean | undefined
mangleContext?IMangleScopeContext
minifiedJs?boolean
needEscaped?boolean
strategy?UserDefinedOptions["jsEscapeStrategy"]

Defined in

types.ts:54


IStyleHandlerOptions

Ƭ IStyleHandlerOptions: { customRuleCallback?: CustomRuleCallback ; mangleContext?: IMangleScopeContext } & RequiredStyleHandlerOptions

Defined in

types.ts:41


InternalPostcssOptions

Ƭ InternalPostcssOptions: Pick<UserDefinedOptions, "cssMatcher" | "mainCssChunkMatcher" | "cssPreflight" | "replaceUniversalSelectorWith" | "cssPreflightRange" | "customRuleCallback" | "disabled">

Defined in

types.ts:479


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

types.ts:462


ItemOrItemArray

Ƭ ItemOrItemArray<T>: T | T[]

Type parameters

Name
T

Defined in

types.ts:8


JsHandler

Ƭ JsHandler: (rawSource: string, set: Set<string>, options?: CreateJsHandlerOptions) => JsHandlerResult

Type declaration

▸ (rawSource, set, options?): JsHandlerResult

Parameters
NameType
rawSourcestring
setSet<string>
options?CreateJsHandlerOptions
Returns

JsHandlerResult

Defined in

types.ts:428


JsHandlerReplaceResult

Ƭ JsHandlerReplaceResult: Object

Type declaration

NameType
codestring
map?SourceMap

Defined in

types.ts:46


JsHandlerResult

Ƭ JsHandlerResult: JsHandlerReplaceResult | GeneratorResult

Defined in

types.ts:48


RequiredStyleHandlerOptions

Ƭ RequiredStyleHandlerOptions: { cssInjectPreflight?: InjectPreflight ; escapeMap?: Record<string, string> ; isMainChunk: boolean } & Pick<UserDefinedOptions, "cssPreflightRange" | "cssChildCombinatorReplaceValue" | "replaceUniversalSelectorWith" | "injectAdditionalCssVarScope" | "cssSelectorReplacement">

Defined in

types.ts:25

Functions

UnifiedViteWeappTailwindcssPlugin

UnifiedViteWeappTailwindcssPlugin(options?): Plugin | undefined

Parameters

NameType
optionsUserDefinedOptions

Returns

Plugin | undefined

Name

UnifiedViteWeappTailwindcssPlugin

Description

uni-app vite vue3 版本插件

Link

https://tw.icebreaker.top/docs/quick-start/frameworks/uni-app-vite

Defined in

vite/index.ts:17


createPlugins

createPlugins(options?): Object

Parameters

NameType
optionsUserDefinedOptions

Returns

Object

NameType
transformJs() => Transform
transformWxml() => Transform
transformWxss() => Transform

Name

weapp-tw-gulp

Description

gulp版本weapp-tw插件

Link

https://tw.icebreaker.top/docs/quick-start/frameworks/native

Defined in

gulp/index.ts:17