@fe-fast/unused-css-pruner
Version:
A powerful CSS pruning tool that removes unused styles with support for dynamic class names, CSS-in-JS, and component-level analysis
33 lines • 1.27 kB
TypeScript
export { CSSPruner } from './core/pruner.js';
export { CSSParser } from './core/css-parser.js';
export { SourceScanner } from './core/source-scanner.js';
export { ConsoleReporter } from './reporters/console-reporter.js';
export { JSONReporter } from './reporters/json-reporter.js';
export { HTMLReporter } from './reporters/html-reporter.js';
export { loadConfig, createSampleConfig, DEFAULT_CONFIG } from './config.js';
export * from './types.js';
export * from './utils/index.js';
export * from './plugins/index.js';
export declare function analyzeCSSUsage(options: {
cssFiles: string[];
sourceDirectories: string[];
config?: Partial<import('./types').Config>;
}): Promise<import('./types').AnalysisResult>;
export declare function cleanCSS(options: {
cssFiles: string[];
sourceDirectories: string[];
outputDir?: string;
dryRun?: boolean;
config?: Partial<import('./types').Config>;
}): Promise<{
result: import('./types').AnalysisResult;
cleanedFiles: string[];
}>;
export declare function quickAnalysis(cssGlob: string, sourceGlob: string): Promise<{
unusedCount: number;
totalCount: number;
potentialSavings: string;
usageRate: string;
}>;
export declare const version: string;
//# sourceMappingURL=index.d.ts.map