Purgecss is a really cool tool for removing unused CSS based on an analysis of your HTML. For example, unused classes.
https://www.purgecss.com/
This gives CSS libraries much more scope to add features without hurting bundle size!
Related Posts
Today I learnt that you can mix HTML inline in markdown! For example, the following is valid.
Foo <hr/>
I'd assumed that you needed HTML separately, like ``` blocks, but no: https://spec.commonmark.org/0.31.2/#raw-html
Admittedly HTML is very restricted on most sites, but it's helpful for SSGs.
You can often estimate the age of a website based on how well it displays on mobile.
All my sites end up with media queries in the CSS for narrow screens. It's so hard to design a single UI that scales from phone to desktop otherwise.
I've released difftastic 0.62! In this release:
* Updated parsers for Bash, C, C++, C#, CSS, Go, Haskell, HTML, Java, JavaScript, JSON, Julia, Lua, Objective-C, OCaml, PHP, Python, Ruby, Scala, TOML, TypeScript and XML.
* Obligatory crash fixes.
https://github.com/Wilfred/difftastic/releases/tag/0.62.0