Drop support for `jekyll-watch-1.4.0` and older (#7287)
Merge pull request 7287
This commit is contained in:
parent
a70ed3713f
commit
faed9c4143
|
@ -85,16 +85,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
External.require_with_graceful_fail "jekyll-watch"
|
External.require_with_graceful_fail "jekyll-watch"
|
||||||
watch_method = Jekyll::Watcher.method(:watch)
|
Jekyll::Watcher.watch(options, site)
|
||||||
if watch_method.parameters.size == 1
|
|
||||||
watch_method.call(
|
|
||||||
options
|
|
||||||
)
|
|
||||||
else
|
|
||||||
watch_method.call(
|
|
||||||
options, site
|
|
||||||
)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue