weapp-tailwindcss
Version:
把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!
45 lines (44 loc) • 2.07 kB
TypeScript
import type { SetupWebpackV5ProcessAssetsHookOptions } from './helpers.js';
import type { WebpackCssHandlerOptions } from './pipeline-helpers.js';
export declare function createWebpackCssSourceResolvers(options: {
activeWebpackAssetResourceFiles: ReadonlySet<string>;
appType: SetupWebpackV5ProcessAssetsHookOptions['appType'];
compilerOptions: SetupWebpackV5ProcessAssetsHookOptions['options'];
compilation: {
chunks: Iterable<{
files?: Iterable<string> | string[] | undefined;
hasRuntime?: () => boolean;
name?: string | undefined;
}>;
getAsset?: ((file: string) => {
source?: {
source?: (() => string | {
toString: () => string;
});
};
} | undefined) | undefined;
};
cssAssetFiles: Iterable<string>;
cssAssetResources: ReadonlyMap<string, ReadonlySet<string>>;
directCssAssetResources: ReadonlyMap<string, ReadonlySet<string>>;
cssHandlerOptionsCache: Map<string, WebpackCssHandlerOptions>;
cssSources: Map<string, {
css: string | undefined;
processed?: boolean | undefined;
}>;
cssUserHandlerOptionsCache: Map<string, WebpackCssHandlerOptions>;
groupedCssEntriesLength: number;
singleCssAssetFile?: string | undefined;
isWebGeneratorTarget: boolean;
outputDir: string;
runtimeState: SetupWebpackV5ProcessAssetsHookOptions['runtimeState'];
}): {
activeWebpackCssSourceFiles: Set<string>;
configuredCssEntryFiles: string[];
configuredMainCssEntryFiles: string[];
getCssHandlerOptions: (file: string, rawSource?: string | undefined) => WebpackCssHandlerOptions;
getCssUserHandlerOptions: (file: string) => WebpackCssHandlerOptions;
hasConfiguredTailwindV4SourceRoots: () => boolean;
isSameWebpackSourceScope: (outputFile: string, candidateSourceFile: string, currentSourceFile?: string | undefined) => boolean;
resolveWebpackCssSourceFile: (file: string, rawSource?: string | undefined) => string | undefined;
};