diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-04-06 12:34:39 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-04-06 12:34:39 -0300 |
commit | 0cbfa8c1b70080c7ec4eb352902cf76f8ef30fcf (patch) | |
tree | 42d727946c7a0e66629b578c77e6e43bc353b7a8 /src/write/build-modes | |
parent | 8f4473336fcf9ed94222797ce7e0c35226a90cbb (diff) |
content: generatePageLayout (mostly stub)
Diffstat (limited to 'src/write/build-modes')
-rw-r--r-- | src/write/build-modes/live-dev-server.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/write/build-modes/live-dev-server.js b/src/write/build-modes/live-dev-server.js index 206a2403..93980929 100644 --- a/src/write/build-modes/live-dev-server.js +++ b/src/write/build-modes/live-dev-server.js @@ -81,6 +81,8 @@ export async function go({ const contentDependenciesWatcher = await watchContentDependencies(); const {contentDependencies: allContentDependencies} = contentDependenciesWatcher; + + contentDependenciesWatcher.on('error', () => {}); await new Promise(resolve => contentDependenciesWatcher.once('ready', resolve)); let targetSpecPairs = getPageSpecsWithTargets({wikiData}); @@ -333,6 +335,7 @@ export async function go({ const bound = bindUtilities({ absoluteTo, + cachebust, defaultLanguage, getSizeOfAdditionalFile, getSizeOfImageFile, @@ -440,7 +443,7 @@ export async function go({ // END PASTE - const pageHTML = topLevelResult.main.content.toString(); + const pageHTML = topLevelResult.toString(); /* const pageHTML = generateDocumentHTML(pageInfo, { |