format and fix certain build breaks

This commit is contained in:
be5invis 2024-03-04 17:09:15 -08:00
parent 12a3b8c244
commit d5661093ff
65 changed files with 553 additions and 862 deletions

View file

@ -4,7 +4,7 @@ import fs from "fs";
const WebfontFormatMap = new Map([
["WOFF2", "woff2"],
["TTF", "truetype"]
["TTF", "truetype"],
]);
export default function (output, family, hs, formats, unhinted) {
@ -22,7 +22,7 @@ export default function (output, family, hs, formats, unhinted) {
.map(
ext =>
`url('${ext}${dirSuffix}/${term.name}.${ext}') ` +
`format('${WebfontFormatMap.get(ext)}')`
`format('${WebfontFormatMap.get(ext)}')`,
)
.join(", ");
ans += `