skanjo / samer.kanjo.net

The personal web site of Samer Kanjo
https://samer.kanjo.net
0 stars 0 forks source link

Vendor fonts #39

Closed skanjo closed 5 months ago

skanjo commented 5 months ago

I am currently pulling on sans, serif, and mono fonts as NPM packages from Fontsource and pulling in Font Awesome as a NPM package. I then need to use 11ty to copy over the relevant CSS and font files fro node_modules to the build directory. This makes my 11ty config unnecessarily verbose., IMO. I am not likely to frequently change these fonts. If I vendor the fonts in the static directory and customize the CSS I could remove that copy config given anything in static directory is copied to the build directory. I will also version the directories in case I need to later update the fonts and break the cache without using a checksum in the filenames.

skanjo commented 5 months ago

Decided I am not going to version the font files. I think it is highly like that I am not going to update the versions of these files. I will consider again if necessary.