-
Notifications
You must be signed in to change notification settings - Fork 187
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
Group properies better #312
Comments
I've pondered this as well. You will see a decrease in size as long as the following expression is true:
Whether the curly braces factor in depends on if multiple properties are within the block. In this case, we're assuming 1 property per block. |
Here's another example that I have encountered, I input the following code: .col-1-of-4 {
width: 25%
}
.col-2-of-4 {
width: 50%
}
.col-2-of-8 {
width: 25%
} And I get no change in the file, instead of getting: .col-1-of-4, .col-2-of-8 {
width: 25%
}
.col-2-of-4 {
width: 50%
} Lucas |
@nikitasius Grouping is quite complicated and will be improved in future. I'm already tried but have no good solution yet. I'm plannig to continue work on it one day. @lucasgruwez That transformation is unsafe. For example You may improve rule merge by providing usage data. You may to get what you expect by providing something like this (for your example): {
"scopes": [
["col-1-of-4"],
["col-2-of-4"],
["col-2-of-8"]
]
} |
OK, that helped a lot!! Thanks for your response! |
Hello!
We have an example CSS:
Aftter using https://css.github.io/csso/csso.html
we have:
Why you not trying to group like that:
and
with adding
and finally get:
Like this you can decrease file size much more 1364 bytes Vs. 1457 bytes.
Best regards, nikitasius.
The text was updated successfully, but these errors were encountered: