UNPKG

weapp-tailwindcss

Version:

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

34 lines (33 loc) 2.22 kB
import type { TailwindV4CssSource } from '@tailwindcss-mangle/engine'; import type { Root } from '@weapp-tailwindcss/postcss'; export interface TailwindSourceEntry { base: string; pattern: string; negated: boolean; } export type { TailwindInlineSourceCandidates } from './source-scan/inline-source.js'; export { collectCssInlineSourceCandidates, expandInlineSourceCandidatePattern } from './source-scan/inline-source.js'; export declare const DEFAULT_SOURCE_SCAN_EXTENSIONS: string[]; export declare const FULL_SOURCE_SCAN_EXTENSIONS: string[]; export declare function createSourceScanPattern(extensions?: string[]): string; export declare const FULL_SOURCE_SCAN_PATTERN: string; export declare const FULL_SOURCE_SCAN_EXTENSION_RE: RegExp; export declare function toPosixPath(value: string): string; export declare function resolveSourceScanPath(value: string): string; export declare function isFileExcludedByTailwindSourceEntries(file: string, entries: TailwindSourceEntry[] | undefined): boolean; export declare function isFileMatchedByTailwindSourceEntries(file: string, entries: TailwindSourceEntry[] | undefined): boolean; export declare function createTailwindSourceEntryMatcher(entries: TailwindSourceEntry[] | undefined): ((file: string) => boolean) | undefined; export declare function resolveTailwindV4CssSourceBase(source: Pick<TailwindV4CssSource, 'base' | 'file'>, fallbackBase: string): string; export declare function parseConfigParam(params: string): string | undefined; export declare function normalizeLegacyContentEntries(content: unknown, base: string, options?: { relativeBase?: string | undefined; }): TailwindSourceEntry[]; export declare function resolveTailwindSourceEntry(sourcePath: string, base: string, negated: boolean, defaultPattern?: string): Promise<TailwindSourceEntry>; export declare function parseSourceFileParam(params: string): { negated: boolean; sourcePath: string; } | undefined; export declare function resolveCssSourceEntries(root: Root, base: string, defaultPattern?: string): Promise<TailwindSourceEntry[]>; export declare function expandTailwindSourceEntries(entries: TailwindSourceEntry[], options?: { ignore?: string[]; }): Promise<string[]>;