Fix glitch assets not being found

This commit is contained in:
Claire
2025-07-23 12:48:45 +02:00
parent 26ba2db53f
commit d69c5f1a6e

View File

@@ -29,10 +29,13 @@ export function MastodonAssetsManifest(): Plugin {
},
async generateBundle() {
// Glob all assets and return an array of absolute paths.
const assetPaths = await glob('{fonts,icons,images}/**/*', {
cwd: jsRoot,
absolute: true,
});
const assetPaths = await glob(
['flavours/*/{fonts,icons,images}/**/*', '{fonts,icons,images}/**/*'],
{
cwd: jsRoot,
absolute: true,
},
);
const assetManifest: Record<string, AssetManifestChunk> = {};
const excludeExts = ['', '.md'];