Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configurable watcher delay #6

Open
mkhazov opened this issue Dec 5, 2016 · 2 comments
Open

Add configurable watcher delay #6

mkhazov opened this issue Dec 5, 2016 · 2 comments

Comments

@mkhazov
Copy link

mkhazov commented Dec 5, 2016

Thanks for this tool, it's very helpful.

But I faced the problem. In our project we use pug templates which compile to html. When I change some template, multiple html files start to rebuild. livedev starts the server restart when it get the first file change notification, but html files are still rebuilding and triggering new fs notifications. It causes multiple server restarts one after the other and takes a lot of time.
So it would be great to have a chance to set some delay between fs event and server restart.

@qrtz
Copy link
Owner

qrtz commented Dec 5, 2016

Thank you for using livedev. Your feedback is always appreciated.
I will look into this issue. In the meantime, the workaround could be to configure livedev to ignore the generated html files and use one file that you modified at the end the compilation to trigger server restart.

@mkhazov
Copy link
Author

mkhazov commented Dec 6, 2016

Thank you!
The thing is modification of the header or the footer template causes rebuild (= modification) of multiple html files at once. Another case is modifying the specific page template which cause the rebuild of the single html file. So anyway I need livedev to watch all generated html files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants