Hacker News new | ask | show | jobs
by bhaak 83 days ago
He’s talking about minifying CSS colors and I’m not sure if it is what I think it is.

Do CSS minifier really adjust the colors in the CSS files to get better compression rates or to reduce the number of rules in the CSS?

2 comments

The author’s minifier now does so, yes. I think you’d have to research further to decide if they’re the first to do so or not.
It depends on the minifier (SVG optimizers do this too), but yes, they may reduce the precision of colors. I checked and esbuild will turn lab() into a hex color if possible.