Make sure Google lighthouse can tell we're using font-display: swap

This commit is contained in:
Jake Howard 2023-06-13 14:34:10 +01:00
parent 7e57f25d1b
commit 9abb1045b2
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -22,3 +22,6 @@ mkcontrib fira-code node_modules/@fontsource/fira-code/latin.css
mkcontrib fira-code/files node_modules/@fontsource/fira-code/files/fira-code-latin-* mkcontrib fira-code/files node_modules/@fontsource/fira-code/files/fira-code-latin-*
mkcontrib htmx node_modules/htmx.org/dist/{htmx.min.js,ext} mkcontrib htmx node_modules/htmx.org/dist/{htmx.min.js,ext}
mkcontrib glightbox node_modules/glightbox/dist/css/glightbox.min.css mkcontrib glightbox node_modules/glightbox/dist/css/glightbox.min.css
# HACK: Make sure Google lighthouse can tell we're using `font-display: swap`
find $CONTRIB_DIR/fira-code -type f -exec sed -i 's/var(--fontsource-display, swap)/swap/g' {} \;