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

nanoc-live: disable page auto-reload #59

Open
axilleas opened this issue Mar 23, 2021 · 2 comments
Open

nanoc-live: disable page auto-reload #59

axilleas opened this issue Mar 23, 2021 · 2 comments

Comments

@axilleas
Copy link

Is there a way to disable the page auto-reload when nanoc-live is used?

I see view_options = options.merge('live-reload': true) is used in
https://github.com/nanoc/nanoc/blob/d0dbd4c0301bf178a862d06c7408317a63eefb81/nanoc-live/lib/nanoc/live/command_runners/live.rb#L28, but not sure if you could somehow set this to false 🤔

@denisdefreyne
Copy link
Member

You could use the nanoc compile --watch (or -W) command, alongside running nanoc view. Would that work for you?

@axilleas
Copy link
Author

@ddfreyne thanks for the quick response 😄 I was looking for a similar solution like guard-nanoc provides. compile and view would work, but that would require running them in two terminals.

If there was a flag or a variable that we could set, that would be great! At this point I guess I'm nitpicking, so feel free to close this :)

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

No branches or pull requests

2 participants