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
Clarification about some options #649
Comments
There's no manual for it but as they say, "use the force, read the source" :-) So here we go: All advanced operations are dispatched here: https://github.com/jakubpawlowicz/clean-css/blob/master/lib/selectors/advanced.js#L59
If your content is not-so-well structured and / or uses some edge CSS stuff I'd turn You can find more tests here: https://github.com/jakubpawlowicz/clean-css/tree/master/test/selectors Hope this helps. |
I reworded my post and added it to readme: https://github.com/jakubpawlowicz/clean-css#what-advanced-optimizations-are-applied |
@jakubpawlowicz This is great, thanks! |
Are all of these advanced optimizations 100% safe? |
Sorry for a bit of a lag with the reply. I would call all but restructuring and shorthand compacting safe. Those two should be as well but there could be some edge cases, and question of safety also depends on the context, as if you target some old browsers or email clients you can expect those to break compatibility. I am currently thinking about standardizing those "safety levels" in the next version of clean-css. |
I can't find any details about what are the specific operations done in "advanced" mode.
Can this be explained in details? I want to know if it's safe to do this with my CSS.
Also, what is "restructuring" and "aggressiveMerging"?
Can I see examples about what these operations actually do?
The text was updated successfully, but these errors were encountered: