Skip to content

Commit

Permalink
Fixes jekyll#9502
Browse files Browse the repository at this point in the history
Makes `livereload_ignore` finally work properly.
  • Loading branch information
mslinn committed Mar 28, 2024
1 parent dbbfc5d commit 7e0cfec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/commands/serve.rb
Expand Up @@ -160,7 +160,7 @@ def register_reload_hooks(opts)
if @changed_pages && @reload_reactor && @reload_reactor.running?
ignore, @changed_pages = @changed_pages.partition do |p|
Array(opts["livereload_ignore"]).any? do |filter|
File.fnmatch(filter, Jekyll.sanitized_path(p.relative_path))
File.fnmatch(filter, p.relative_path)
end
end
Jekyll.logger.debug "LiveReload:", "Ignoring #{ignore.map(&:relative_path)}"
Expand Down

0 comments on commit 7e0cfec

Please sign in to comment.