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

Multiple blocks of HTML #22

Closed
peterbe opened this issue Apr 29, 2019 · 1 comment
Closed

Multiple blocks of HTML #22

peterbe opened this issue Apr 29, 2019 · 1 comment
Labels
question Further information is requested

Comments

@peterbe
Copy link

peterbe commented Apr 29, 2019

My use case is that it's hard to have 1 optimized/cleaned/minimal/critical CSS stylesheet per page. What I want is the super set of the CSS for GET /, GET /about, GET /support, GET /search. Each page uses Bootstrap/Bulma/Whatever but they all each have their own slight differences.

E.g. The original CSS looks like this:

div.foo { }
div.bar { }
div.baz { } 
div.woo { }

Every page has <div class="foo">. The home page (only) has <div class="bar">. The /about page (only) has <div class="baz">.

So, the ideal outcome should be:

div.foo { }
div.bar { }
div.baz { } 
@leeoniya
Copy link
Owner

hey @peterbe

i added "used selectors" reporting in v1.0.7. take a look at https://github.com/leeoniya/dropcss#accumulating-a-whitelist

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

No branches or pull requests

2 participants