Make sure Google lighthouse can tell we're using font-display: swap
This commit is contained in:
parent
7e57f25d1b
commit
9abb1045b2
1 changed files with 3 additions and 0 deletions
|
@ -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' {} \;
|
||||||
|
|
Loading…
Reference in a new issue