UNPKG

weapp-tailwindcss

Version:

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

44 lines (43 loc) 2.44 kB
import type { ParserOptions } from '@babel/parser'; import type { CssOptions, LoadedPostcssOptions } from '@weapp-tailwindcss/postcss/types'; import type { ICreateCacheReturnType } from '../../cache/index.js'; import type { WeappTailwindcssGeneratorUserOptions } from '../../generator/index.js'; import type { WeappTailwindcssStyleInjectorUserOptions } from '../../style-injector/internal.js'; import type { AppType, IArbitraryValues, IUnocssCompatibilityOptions } from '../shared.js'; import type { LengthUnitsRuntimeOptions, TailwindCssRuntimeOptions } from '../../tailwindcss/runtime-types.js'; export interface CssSourceTraceOptions { root?: string | undefined; } export type CssSourceTraceUserOptions = boolean | CssSourceTraceOptions; export interface UserDefinedOptionsGeneralPart { supportCustomLengthUnits?: LengthUnitsRuntimeOptions | boolean | undefined; appType?: AppType | undefined; arbitraryValues?: IArbitraryValues | undefined; unocss?: boolean | IUnocssCompatibilityOptions | undefined; jsPreserveClass?: ((keyword: string) => boolean | undefined) | undefined; jsArbitraryValueFallback?: boolean | 'auto' | undefined; replaceRuntimePackages?: boolean | Record<string, string> | undefined; rewriteCssImports?: boolean | undefined; generator?: WeappTailwindcssGeneratorUserOptions | undefined; styleInjector?: WeappTailwindcssStyleInjectorUserOptions | undefined; cssSourceTrace?: CssSourceTraceUserOptions | undefined; disabledDefaultTemplateHandler?: boolean | undefined; runtimeLoaderPath?: string | undefined; tailwindcssBasedir?: string | undefined; cache?: boolean | ICreateCacheReturnType | undefined; babelParserOptions?: (ParserOptions & { cache?: boolean | undefined; cacheKey?: string | undefined; cacheMaxEntries?: number | undefined; cacheMaxSourceLength?: number | undefined; }) | undefined; experimentalJsFastPath?: boolean | 'oxc' | undefined; cssChildCombinatorReplaceValue?: string | string[] | undefined; postcssOptions?: LoadedPostcssOptions | undefined; cssOptions?: CssOptions | undefined; cssRemoveHoverPseudoClass?: boolean | undefined; cssRemoveProperty?: boolean | undefined; tailwindcssV4GradientFallback?: boolean | undefined; tailwindcssRuntimeOptions?: TailwindCssRuntimeOptions | undefined; logLevel?: 'info' | 'warn' | 'error' | 'silent' | undefined; }