UNPKG

weapp-tailwindcss

Version:

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

35 lines (34 loc) 1.56 kB
import type { OutputAsset } from 'rollup'; import type { RememberedCssSource } from './types.js'; import type { ICreateCacheReturnType } from '../../../cache/index.js'; export interface ApplyViteCssCacheResultOptions { applyCssResult: (source: string) => void; cssRuntimeAffectingHash: string; generatorRawSource: string; generatorSourceFile: string; lastCssResultByFile: Map<string, string>; lastCssSourceHashByFile: Map<string, string>; markCssAssetProcessed?: ((asset: OutputAsset, file?: string) => void) | undefined; originalSource: OutputAsset; outputFile: string; rememberedCssRuntimeSignature: string; rememberedSourcesCount: number; rememberCssSource?: ((entry: RememberedCssSource, cssRuntimeSignature?: string) => void) | undefined; vitePipelineCssInjectionOutputFile: string; } export declare function applyViteCssCacheResult(options: ApplyViteCssCacheResultOptions, source: string): void; export interface ProcessViteCssCacheTaskOptions { applyResult: (source: string) => void | Promise<void>; cache: ICreateCacheReturnType; cacheKey: string; hashKey: string; onCacheHit: () => void; onSharedCacheHit: () => void; onSharedResult: (source: string) => void; onTransformResult: (source: string) => void; sharedCacheKey?: string | undefined; sharedResultCache: Map<string, Promise<string>>; taskHash: string; transform: () => Promise<string>; } export declare function processViteCssCacheTask(options: ProcessViteCssCacheTaskOptions): Promise<void>;