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)