weapp-tailwindcss
Version:
把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!
20 lines (19 loc) • 814 B
TypeScript
import type { Plugin } from 'vite';
import type { CssStage } from '../../compiler/index.js';
interface ViteCssGenerationOptions {
generateCss: (id: string, code: string, hookContext?: {
addWatchFile?: (id: string) => void;
emitFile?: (emittedFile: {
type: 'asset';
fileName: string;
source: string;
}) => string;
cssStage?: CssStage | undefined;
}) => Promise<string | undefined> | string | undefined;
getCommand: () => string | undefined;
onTailwindRootCss?: ((id: string, code: string) => Promise<void> | void) | undefined;
shouldGenerate: () => boolean;
shouldGenerateBuild?: (() => boolean) | undefined;
}
export declare function createViteCssGenerationPlugins(options: ViteCssGenerationOptions): Plugin[];
export {};