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:
@@ -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]",
|
||||
},
|
||||
},
|
||||
],
|
||||
|
Reference in New Issue
Block a user