Differentiate polling from find_new_files to remove double reads in build mode
This commit is contained in:
parent
ffa662a917
commit
6d1c3562a7
4 changed files with 28 additions and 6 deletions
|
@ -47,7 +47,7 @@ module Middleman
|
|||
# @return [void]
|
||||
Contract Any
|
||||
def before_configuration
|
||||
@sources.find_new_files!
|
||||
@sources.poll_once!
|
||||
end
|
||||
|
||||
# After we config, find new files since config can change paths.
|
||||
|
@ -60,7 +60,7 @@ module Middleman
|
|||
end
|
||||
|
||||
@sources.start!
|
||||
@sources.find_new_files!
|
||||
@sources.poll_once!
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue