Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,6 @@ class Build {
};
const image = await get(imageUrl).catch(retry).catch(retry);

this.updateCache(item, cached, hash, isComponent);

await sharp(image).toFile(filePath);
await minify([filePath], {
destination: basePath,
Expand All @@ -273,6 +271,8 @@ class Build {
}),
],
});

this.updateCache(item, cached, hash, isComponent);
} catch (e) {
// swallow error
console.error(e);
Expand Down
Loading
Loading