Fix Wrapstodon font loading by disabling inlining of fonts in Vite (#37198)

This commit is contained in:
Claire 2025-12-11 11:33:15 +01:00 committed by GitHub
parent d25f672c50
commit 37d309bcaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,6 +120,8 @@ export const config: UserConfigFnPromise = async ({ mode, command }) => {
manifest: true,
outDir,
assetsDir: 'assets',
assetsInlineLimit: (filePath, _) =>
/\.woff2?$/.exec(filePath) ? false : undefined,
rollupOptions: {
input: await findEntrypoints(),
output: {