From de9ba56a36040e1f5b2a7344f6245eb217b34d16 Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Thu, 8 Feb 2024 14:34:16 +0000 Subject: [PATCH] generate on start --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 6422cda..767ed96 100644 --- a/index.js +++ b/index.js @@ -59,6 +59,8 @@ function pageUpdate() { fs.writeFileSync(path.join(staticPath, 'index.html'), html) } +pageUpdate() + watcher .on('change', pageUpdate)