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() {
|
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'];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user