weapp-tailwindcss
Version:
把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!
31 lines (30 loc) • 2.23 kB
TypeScript
import type { createEscapeFragments } from '../../../../shared/runtime-class-set/escaped-candidates.js';
import type { SetupWebpackV5ProcessAssetsHookOptions, WebpackSourceLike } from '../helpers.js';
import type { WebpackCssHandlerOptions, WebpackSourceCandidateCache } from './preflight-runtime.js';
export declare function finalizeTracedWebpackCssAsset(css: string, cssHandlerOptions: WebpackCssHandlerOptions, options: {
annotateCss: (css: string) => string;
compilerOptions: SetupWebpackV5ProcessAssetsHookOptions['options'];
finalized?: boolean | undefined;
isWebGeneratorTarget: boolean;
}): string;
export declare function finalizeWebpackCssAssetSource(source: string, compilerOptions: SetupWebpackV5ProcessAssetsHookOptions['options'], isWebGeneratorTarget: boolean, options?: {
cssPreflight?: boolean | undefined;
generatedCss?: boolean;
preserveExistingPreflight?: boolean | undefined;
}): string;
export declare function finalizeWebpackCssAssetOutputSource(source: string, compilerOptions: SetupWebpackV5ProcessAssetsHookOptions['options'], isWebGeneratorTarget: boolean): string;
export declare function collectWebpackJsRuntimeCandidatesFromAssets(options: {
escapeFragments: ReturnType<typeof createEscapeFragments>;
getAssetSource: (file: string) => WebpackSourceLike | undefined;
isWebGeneratorTarget: boolean;
jsAssets: Iterable<string>;
}): Set<string> | undefined;
export declare function collectWebpackJsRuntimeTokenSignature(options: {
getAssetSource: (file: string) => WebpackSourceLike | undefined;
isWebGeneratorTarget: boolean;
jsAssets: Iterable<string>;
}): string;
export declare function addRuntimeTransformCandidates(target: Set<string>, candidates: ReadonlySet<string> | undefined): void;
export declare function createWebpackCssSourceTraceTokenSources(compilerOptions: SetupWebpackV5ProcessAssetsHookOptions['options'], webpackSourceCandidates: WebpackSourceCandidateCache | undefined): import("../../../../shared/css-source-trace.js").CssTokenSourceMap | undefined;
export declare function stringifyOptionalWebpackSourceValue(value: unknown): string;
export declare function stringifyWebpackSourceLike(source: WebpackSourceLike): string;