diff --git a/lib/utils/create_app.js b/lib/utils/create_app.js index df5b7d3..ca1df29 100644 --- a/lib/utils/create_app.js +++ b/lib/utils/create_app.js @@ -71,6 +71,14 @@ function create_app() { if (dev) { route_manager.onchange(create_app); + + const watcher = chokidar.watch(`templates/main.js`, { + ignoreInitial: true + }); + + watcher.on('add', create_app); + watcher.on('change', create_app); + watcher.on('unlink', create_app); } module.exports = create_app; \ No newline at end of file