lib/jekyll-livereload/build.rb in jekyll-livereload-0.2.1 vs lib/jekyll-livereload/build.rb in jekyll-livereload-0.2.2
- old
+ new
@@ -7,10 +7,10 @@
module Build
include Livereload::Configuration
def process(opts)
opts = load_config_options(opts)
- if opts['livereload']
+ if opts['livereload'] and opts['serving']
Jekyll::Hooks.register(:site, :post_render) do |site|
regenerator = Jekyll::Regenerator.new(site)
Livereload.pages = site.pages.select do |p|
regenerator.regenerate?(p)