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() {
|
async generateBundle() {
|
||||||
// Glob all assets and return an array of absolute paths.
|
// Glob all assets and return an array of absolute paths.
|
||||||
const assetPaths = await glob('{fonts,icons,images}/**/*', {
|
const assetPaths = await glob(
|
||||||
cwd: jsRoot,
|
['flavours/*/{fonts,icons,images}/**/*', '{fonts,icons,images}/**/*'],
|
||||||
absolute: true,
|
{
|
||||||
});
|
cwd: jsRoot,
|
||||||
|
absolute: true,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
const assetManifest: Record<string, AssetManifestChunk> = {};
|
const assetManifest: Record<string, AssetManifestChunk> = {};
|
||||||
const excludeExts = ['', '.md'];
|
const excludeExts = ['', '.md'];
|
||||||
|
|||||||
Reference in New Issue
Block a user