UNPKG

weapp-tailwindcss

Version:

把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!

20 lines (19 loc) 874 B
import type { ResolvedConfig } from 'vite'; interface HarmonyApplyHookContext { addWatchFile?: (id: string) => void; } interface CreateUniAppXHarmonyApplyExpanderOptions { generateCss?: ((id: string, code: string, hookContext?: HarmonyApplyHookContext & { transient?: boolean; }) => Promise<string | undefined> | string | undefined) | undefined; getResolvedConfig: () => ResolvedConfig | undefined; isHarmonyBuildTarget: () => boolean; transformCss: (css: string, id: string) => Promise<string>; } export declare function createUniAppXHarmonyApplyExpander(options: CreateUniAppXHarmonyApplyExpanderOptions): { expandStyles: (code: string, id: string, hookContext: HarmonyApplyHookContext) => Promise<string>; rememberSource: (code: string, id: string) => void; styleSources: Set<string>; utilities: Set<string>; }; export {};