mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 08:19:05 +00:00
Fix Wrapstodon font loading by disabling inlining of fonts in Vite (#37198)
This commit is contained in:
@@ -120,6 +120,8 @@ export const config: UserConfigFnPromise = async ({ mode, command }) => {
|
|||||||
manifest: true,
|
manifest: true,
|
||||||
outDir,
|
outDir,
|
||||||
assetsDir: 'assets',
|
assetsDir: 'assets',
|
||||||
|
assetsInlineLimit: (filePath, _) =>
|
||||||
|
/\.woff2?$/.exec(filePath) ? false : undefined,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: await findEntrypoints(),
|
input: await findEntrypoints(),
|
||||||
output: {
|
output: {
|
||||||
|
|||||||
Reference in New Issue
Block a user