weapp-tailwindcss
Version:
把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!
37 lines (36 loc) • 1.86 kB
TypeScript
import type { TailwindV4CssSource } from '@tailwindcss-mangle/engine';
import type { Compiler } from 'webpack';
import type { WebpackCssSourceRegistration, WebpackGeneratedCssRegistration } from '../loaders/runtime-registry.js';
import type { LoaderAnchorFinders } from '../shared/loader-anchors.js';
import type { TailwindRuntimeState } from '../../../tailwindcss/runtime.js';
import type { AppType, InternalUserDefinedOptions } from '../../../types/index.js';
interface SetupWebpackV5LoadersOptions {
compiler: Compiler;
options: InternalUserDefinedOptions;
appType?: AppType | undefined;
weappTailwindcssPackageDir: string;
shouldRewriteCssImports: boolean;
runtimeLoaderPath?: string | undefined;
registerAutoCssSource?: ((source: TailwindV4CssSource) => Promise<void> | void) | undefined;
runtimeState: TailwindRuntimeState;
getClassSetInLoader: () => Promise<void>;
getRuntimeSetInLoader: () => Promise<Set<string>>;
markWebpackProcessedCssSource?: ((file: string) => void) | undefined;
markWebpackCssSourceModule?: ((file: string) => void) | undefined;
registerWebpackGeneratedCss?: ((source: WebpackGeneratedCssRegistration) => void) | undefined;
updateWebpackGeneratedCss?: ((source: {
css: string;
file: string;
}) => void) | undefined;
registerWebpackCssSourceFile?: ((source: WebpackCssSourceRegistration) => void) | undefined;
getRuntimeWatchDependencies: () => {
files: ReadonlySet<string>;
contexts: ReadonlySet<string>;
};
loaderAnchorFinders?: LoaderAnchorFinders | undefined;
mpxCssImportRewrite?: boolean | undefined;
runtimeRegistryKey?: string | undefined;
debug: (format: string, ...args: unknown[]) => void;
}
export declare function setupWebpackV5Loaders(options: SetupWebpackV5LoadersOptions): void;
export {};