Add latency option to listener object.
This commit is contained in:
parent
d37eca6a54
commit
24ce8334ee
|
@ -104,6 +104,7 @@ module Middleman
|
||||||
# Watcher Library
|
# Watcher Library
|
||||||
require "listen"
|
require "listen"
|
||||||
@listener = Listen.to(Dir.pwd, :relative_paths => true, :force_polling => @options[:force_polling])
|
@listener = Listen.to(Dir.pwd, :relative_paths => true, :force_polling => @options[:force_polling])
|
||||||
|
@listener.latency(@options[:latency])
|
||||||
end
|
end
|
||||||
|
|
||||||
@listener.change do |modified, added, removed|
|
@listener.change do |modified, added, removed|
|
||||||
|
|
Loading…
Reference in a new issue