You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to remove attribute-only selectors ([href] { margin: 0 }) or other non-class-based selectors, we would need to look at every selector in the atomized CSS file, and then detect if it would apply to the markup, and only then retain it (or if it is in the whitelist). Not sure where that code should lie (css, html, or task repo). We may also want to look into pulling in an existing library for removing unused CSS, since it isn't really the main focus of Red Perfume. In which case, based on the API of that library, we could determine what data needs outputted from the Red Perfume libraries.
TheJaredWilcurt
changed the title
Return list of all used classes
Return list of all used classes (for removing unused css)
Dec 26, 2021
In order to remove unused CSS, we need to know what CSS gets used!
The text was updated successfully, but these errors were encountered: