work with static partials. Closes #1206
This commit is contained in:
parent
b6951f2729
commit
f0603ddf2f
6 changed files with 754 additions and 8 deletions
|
@ -111,12 +111,12 @@ module Middleman
|
|||
end
|
||||
|
||||
def start_file_watcher
|
||||
return if @listener or @options[:disable_watcher]
|
||||
return if @listener || @options[:disable_watcher]
|
||||
|
||||
# Watcher Library
|
||||
require 'listen'
|
||||
|
||||
options = {force_polling: @options[:force_polling]}
|
||||
options = { force_polling: @options[:force_polling] }
|
||||
options[:latency] = @options[:latency] if @options[:latency]
|
||||
|
||||
@listener = Listen.to(Dir.pwd, options) do |modified, added, removed|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue