weapp-tailwindcss
Version:
把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!
31 lines (30 loc) • 1.38 kB
TypeScript
import type { SetupWebpackV5ProcessAssetsHookOptions } from '../helpers.js';
import type { WebpackGeneratorUserCssSource } from './sources.js';
export declare function resolveWebpackCssAssetModuleResource(resource: string, issuer: {
context?: string;
resource?: string;
} | undefined, options: {
appType?: SetupWebpackV5ProcessAssetsHookOptions['appType'] | undefined;
cssMatcher: (file: string) => boolean;
}): string | undefined;
export declare function isSameWebpackCssSourceScope(options: {
candidateSourceFile: string;
currentSourceFile?: string | undefined;
outputFile: string;
resourcesByAsset: ReadonlyMap<string, ReadonlySet<string>>;
}): boolean;
export declare function shouldAppendCurrentWebpackAssetUserCss(options: {
currentAssetHasBundlerGeneratedMarker: boolean;
currentAssetHasUserCss: boolean;
currentAssetLooksGenerated: boolean;
registeredUserRawSource: WebpackGeneratorUserCssSource | undefined;
shouldPreserveGeneratedWebAssetUserCss: boolean;
sourceCssProcessed: boolean;
}): boolean;
export declare function createWebpackCurrentAssetUserRawSource(options: {
currentAssetHasUserCss: boolean;
currentAssetLooksGenerated: boolean;
currentAssetUserCssSource: string;
shouldAppendCurrentAssetUserCss: boolean;
sourceCssProcessed: boolean;
}): WebpackGeneratorUserCssSource | undefined;