Skip to content

Commit

Permalink
💚 Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaoz-Topsy committed Jul 24, 2024
1 parent 6254bb4 commit de7bf3e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ const main = async () => {
getHandlebar().unregisterPartialsAndHelpers();
getHandlebar().registerPartialsAndHelpers();

console.log(`Generating images`);
await generateFavicons();
for (const module of modules) {
await module.generateImages(true, modules);
}

const availableLanguages = localisationModule.getLanguageCodes();
let langCode = availableLanguages[0];
Expand All @@ -43,6 +39,11 @@ const main = async () => {
reInitialise: true,
loadFromJson: true,
});

for (const module of modules) {
await module.generateImages(true, modules);
}

for (const module of modules) {
await module.writePages(langCode, modules);
}
Expand Down

0 comments on commit de7bf3e

Please sign in to comment.