rimunroe 1 day ago

Also minifying code seems like a no brainer for someone developing a web app.

1
hu3 1 day ago

Is it?

Bootstrap CSS: 147KB

Bootstrap CSS Minified: 122KB

Bootstrap CSS GZipped: 22KB

Bootstrap CSS GZipped and Minified: 20KB

I'm not convinved 10% is worth adding a minifier. And I ask this question for every build tool in my projects.

source: https://css-tricks.com/the-difference-between-minification-a...

rimunroe 1 day ago

CSS minifies quite poorly compared to JavaScript. JavaScript generally minifies quite well (I've seen savings as high as 85%). The minifier can mangle variable and function names as much as it wants with no effect on behavior as well as do automatic dead code elimination and constant expression evaluation. CSS does not compress nearly as easily because the minifier is much more limited in what it can compress (mostly formatting).