« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/write/build-modes
diff options
context:
space:
mode:
Diffstat (limited to 'src/write/build-modes')
-rw-r--r--src/write/build-modes/live-dev-server.js5
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, {