weapp-tailwindcss
Version:
把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!
29 lines (28 loc) • 1.96 kB
TypeScript
import type { TailwindV4CssSource } from '../../../../shared/generator-css/source-resolver/types.js';
import type { WebpackCssHandlerOptions } from './preflight-runtime.js';
import type { InternalUserDefinedOptions } from '../../../../../types/index.js';
export { collectWebpackAssetUserCssMarkers } from './user-css-markers.js';
export declare function resolveWebpackGeneratorRawSource(rawSource: string, cssHandlerOptions: WebpackCssHandlerOptions): string;
export declare function shouldConsumeWebpackLoaderGeneratedCss(options: {
allowMarkerlessRegistryMatch?: boolean | undefined;
hasBundlerGeneratedCssMarker: boolean;
loaderGeneratedClassSet?: Set<string> | undefined;
sourceCandidates?: Set<string> | undefined;
shouldRegenerateExplicitTailwindV4CssSource: boolean;
watchMode?: boolean | undefined;
}): boolean;
export declare function hasDeferredWebpackGeneratedCss(source: string, generatedClassSets: Iterable<ReadonlySet<string>>): boolean;
export interface WebpackGeneratorUserCssSource {
css: string;
processed: boolean;
}
export declare function hasUsableWebpackGeneratorCssSources(cssSources: TailwindV4CssSource[] | undefined): cssSources is TailwindV4CssSource[];
export declare function normalizeWebpackGeneratorCssSources(cssSources: TailwindV4CssSource[] | undefined): import("@tailwindcss-mangle/engine").TailwindV4CssSource[] | undefined;
export declare function scopeWebpackGeneratorOptionsToCssSource(compilerOptions: InternalUserDefinedOptions, sourceFile: string | undefined, options?: {
disableUnmatchedCssEntries?: boolean | undefined;
}): InternalUserDefinedOptions;
export declare function hasProcessedCssAssetUrl(css: string): boolean;
export declare function shouldUseWebpackAssetAsGeneratorUserCss(rawSource: string, generatorRawSource: string, options?: {
processed?: boolean | undefined;
}): boolean;
export declare function collectWebpackBareSelectorUserCss(source: string): string;