Differentiate polling from find_new_files to remove double reads in build mode

This commit is contained in:
Thomas Reynolds 2016-01-20 12:20:27 -08:00
parent ffa662a917
commit 6d1c3562a7
4 changed files with 28 additions and 6 deletions

View file

@ -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