nanoc / features

Collection of feature requests
2 stars 1 forks source link

nanoc-live: disable page auto-reload #59

Open axilleas opened 3 years ago

axilleas commented 3 years ago

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 :thinking:

denisdefreyne commented 3 years ago

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

axilleas commented 3 years ago

@ddfreyne thanks for the quick response :smile: 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 :)