UNPKG

weapp-tailwindcss

Version:

把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!

12 lines (11 loc) 1.03 kB
import type { AppType } from '../types/index.js'; import path from 'node:path'; export declare function isMpx(appType?: AppType): appType is "mpx"; export declare function getTailwindcssCssEntry(pkgDir: string): string; export declare function rewriteMpxWebpackPluginRequests(request: string, mpxWebpackPluginDir: string, pathImpl?: Pick<typeof path, 'join'>): string; export declare function patchMpxWebpackPluginRequests(compiler: any, mpxWebpackPluginDir: string | undefined): boolean; export declare function patchMpxWebpackPluginNormalizeLib(_compiler: any, mpxWebpackPluginDir: string | undefined): boolean; export declare function ensureMpxTailwindcssAliases(compiler: any, pkgDir: string): string; export declare function patchMpxLoaderResolve(loaderContext: any, pkgDir: string, enabled: boolean): void; export declare function setupMpxTailwindcssRedirect(pkgDir: string, enabled: boolean): void; export declare function injectMpxCssRewritePreRules(compiler: any, loader: string | undefined, loaderOptions: any): void;