Closed baawiki closed 4 years ago
Hey @baawiki, thanks for opening this issue. The space savings is small but welcome, but more to the point it's good to have consistent coding style.
@thomaspark you should use Stylelint to enforce a consistent style :)
PS. We have a stylelint config we use in our projects if you are interested. You might need to adapt it a bit like disabling the order rules, but it should be a good starting point
Good call, I'll take a look at the official config. Thanks @XhmikosR!
See here for background.
There's a few places in Bootswatch where colour hex strings are written with uppercase letters, including in CSS custom properties which minifiers don't optimise.
The savings do look small in bytes, but might be beneficial for sites taking only a subset of the CSS or where the reduction results in one less IP packet needed.
For my own project using a subset of the Cerulean theme CSS, this saves 17/3640 bytes ~= 0.5%.