1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 19:21:18 -04:00

simplify webfonts by pulling them straight from NPM

This commit is contained in:
2021-10-26 12:57:26 -04:00
parent f17f1fc329
commit 5b78d8b4b7
30 changed files with 407 additions and 197 deletions

View File

@@ -74,7 +74,7 @@ export default {
integrityHashes: ["sha384"],
customize: (entry) => {
// don't add thousands of unneeded twemoji graphics to the manifest
if (entry.key.startsWith("emoji/")) return false;
if (entry.key.startsWith("emoji/") || entry.key.endsWith(".map")) return false;
},
}),
],
@@ -168,7 +168,7 @@ export default {
test: /\.(woff(2)?|ttf|otf|eot)$/,
type: "asset/resource",
generator: {
filename: "fonts/[name][ext]",
filename: isProd ? "fonts/[name]-[contenthash:6][ext]" : "fonts/[name][ext]",
},
},
],