diff --git a/index.js b/index.js index 7edb403..93759f1 100644 --- a/index.js +++ b/index.js @@ -60,6 +60,8 @@ function pageUpdate() { fs.writeFileSync(path.join(staticPath, 'index.html'), html) } +pageUpdate() + watcher .on('change', pageUpdate) .on('add', pageUpdate)