diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-12-30 17:29:50 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-12-30 17:34:13 -0400 |
commit | b846fd29b379788178abe084473c467b4d35a941 (patch) | |
tree | b64f6b668f3cac86b86998e6d2144f15363e38ef | |
parent | 90f97ce0b23c588ef149267a14f9ee0f8dffa9e8 (diff) |
write: static-build: skip favicon & shared files when not writing all
-rw-r--r-- | src/write/build-modes/static-build.js | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/write/build-modes/static-build.js b/src/write/build-modes/static-build.js index a8e0eb23..eb2f6fe3 100644 --- a/src/write/build-modes/static-build.js +++ b/src/write/build-modes/static-build.js @@ -139,15 +139,19 @@ export async function go({ urls, }); - await writeFavicon({ - mediaPath, - outputPath, - }); - - await writeSharedFilesAndPages({ - outputPath, - randomLinkDataJSON: generateRandomLinkDataJSON({wikiData}), - }); + if (writeAll) { + await writeFavicon({ + mediaPath, + outputPath, + }); + + await writeSharedFilesAndPages({ + outputPath, + randomLinkDataJSON: generateRandomLinkDataJSON({wikiData}), + }); + } else { + logInfo`Skipping favicon and shared files (not writing all site pages).` + } const buildSteps = writeAll ? Object.entries(pageSpecs) |