kartikk221 / live-directory

A Simple-To-Use Dynamic Template Content Manager For Webservers
MIT License
12 stars 5 forks source link

Adding a hot_reload parameter. #5

Closed moufmouf closed 1 year ago

moufmouf commented 1 year ago

This allows disabling the file watcher (for instance for production environments were we know the files will not change) There is no parameter in Chokidar allowing not to listen so this is implemented by stopping Chokidar as soon as the initial list of directories has been fetched.

Closes #4