So this website uses a small handful of unicode emojis to visually indicate different elements, most notably post category. Since not every browser handles these well, I supply googles noto color emoji font as a fallback. This font is about as large as my whole website, so sending it on every request is a non-starter. Subfont to the rescue! A command line tool and generally available via npm.
Since this is a javascript project by someone I assume to be a frontend dev, it makes some weird assumptions.
By default it will spit out the optimized font as a massive base64 glob inside your css file.
I don't want that.
The workaround ยน is to specify more than one format.
subfont --formats='woff2,woff' -r -d -o . https://port19.xyz
subfont
directoryThat's all. Just a quick reference for my future self, but maybe someone else finds it useful as well.