Fix glitch assets not being found
This commit is contained in:
parent
26ba2db53f
commit
d69c5f1a6e
@ -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'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user