format and fix certain build breaks
This commit is contained in:
parent
12a3b8c244
commit
d5661093ff
65 changed files with 553 additions and 862 deletions
|
@ -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 += `
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue