ngx-unused-css
Version:
Detect unused CSS in angular components
9 lines (8 loc) • 343 B
TypeScript
/**
* Parse html template and find all elements which contains ngClass attribute, if found
* make copy of elements on the same level with all possible combinations of classes found
* in ngClass configuration
* @param {string} html
* @param {string} cssPath
*/
export default function parseNgClass(html: string, cssPath: string): string;