generate on start
This commit is contained in:
parent
3c6270f83d
commit
de9ba56a36
1 changed files with 2 additions and 0 deletions
2
index.js
2
index.js
|
@ -59,6 +59,8 @@ function pageUpdate() {
|
|||
fs.writeFileSync(path.join(staticPath, 'index.html'), html)
|
||||
}
|
||||
|
||||
pageUpdate()
|
||||
|
||||
watcher
|
||||
.on('change', pageUpdate)
|
||||
|
||||
|
|
Loading…
Reference in a new issue