1 रिपॉजिटरी
Analyzing HTML and JS files to detect the presence of specific CSS selectors.
Distinct from HTML Static Analysis: Distinct from HTML Static Analysis: focuses on extracting used selectors rather than finding malformed tags.
Explore 1 awesome GitHub repository matching development tools & productivity · Markup Usage Analysis. Refine with filters or upvote what's useful.
PurgeCSS is a build-pipeline CSS purger and optimizer designed to reduce the final size of stylesheets. It functions as a tree shaking tool that scans HTML and JavaScript files to identify and remove unused selectors from CSS. The tool optimizes CSS payloads by performing static content analysis to detect which styles are actually used in the markup. It uses regex-based pattern matching to find potential class names without executing code and employs a PostCSS-based AST transformation to safely delete unused rules. The project provides capabilities for frontend build automation, allowing the
Scans HTML and JavaScript files to create a comprehensive list of all CSS selectors used in the markup.