Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a CSS pruning step #34

Open
pydsigner opened this issue Aug 9, 2023 · 2 comments
Open

Add a CSS pruning step #34

pydsigner opened this issue Aug 9, 2023 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@pydsigner
Copy link
Owner

Use cssselect, tinycss2, and lxml/beautifulsoup4 to identify unused CSS rules and exclude them.

@pydsigner
Copy link
Owner Author

https://lxml.de/xpathxslt.html — beautifulsoup does not offer the functionality we need.

@pydsigner
Copy link
Owner Author

lightningcss offers the exclusion part of the capability already, as long as we don't have overlap between classes and ids (which is probably wise anyway).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant