mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-16 09:18:46 +00:00
Fix glitch assets not being found
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user