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

Filter function for remove only specific unused selectors? #201

Open
7iomka opened this issue May 8, 2018 · 0 comments
Open

Filter function for remove only specific unused selectors? #201

7iomka opened this issue May 8, 2018 · 0 comments

Comments

@7iomka
Copy link

7iomka commented May 8, 2018

Hey! Thanks for plugin!
Is it possible to specify a function in the plugin's settings that would take an array of globs as an argument and then perform its normal work, but would additionally check whether the result (an unused selector) matches this glob?
For example i want to delete only bootstrap unused spacing-utilities selectors (https://getbootstrap.com/docs/4.1/utilities/spacing/);
On my projects, I have expanded sass map $spacers with multiple custom variants, and the number of generated lines of code has increased to 10,000 (!), Although the project uses a maximum of 600! In my case, utilitaries classes are used according to good-typing rules only in html (I have a pug template engine).
Advise me how to solve this problem with an easy task?
Thanks for any help!

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

No branches or pull requests

1 participant