UNPKG

css-deadweigth

Version:

CLI tool to detect unused CSS in your project

12 lines (9 loc) 229 B
export function findUnusedSelectors(allSelectors, usedSelectors) { const unused = []; for (const selector of allSelectors) { if (!usedSelectors.has(selector)) { unused.push(selector); } } return unused; }