weapp-tailwindcss
Version:
把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!
32 lines (31 loc) • 1.34 kB
TypeScript
import type { sources as WebpackSources } from 'webpack';
import type { WebpackAssetCompilationLike } from './asset-emission-plan.js';
import type { SetupWebpackV5ProcessAssetsHookOptions } from './helpers.js';
import type { LinkedJsModuleResult } from '../../../../types/index.js';
export declare function createWebpackJsAssetModuleGraph(options: {
compilation: {
getAsset: (file: string) => {
source: {
source: () => unknown;
};
} | undefined;
};
compilerOptions: SetupWebpackV5ProcessAssetsHookOptions['options'];
entries: Array<[string, unknown]>;
outputDir: string;
}): {
jsAssets: Map<string, string>;
moduleGraphOptions: {
resolve(specifier: string, importer: string): string | undefined;
load: (id: string) => string | undefined;
filter(id: string): boolean;
};
};
export declare function applyWebpackLinkedJsResults(options: {
ConcatSource: new (code: string) => WebpackSources.Source;
compilation: Pick<WebpackAssetCompilationLike, 'getAsset' | 'updateAsset'>;
compilerOptions: SetupWebpackV5ProcessAssetsHookOptions['options'];
debug: SetupWebpackV5ProcessAssetsHookOptions['debug'];
jsAssets: ReadonlyMap<string, string>;
linked: Record<string, LinkedJsModuleResult> | undefined;
}): void;