dont hardcode ignored build dir name

This commit is contained in:
Thomas Reynolds 2013-06-23 15:15:43 -07:00
parent 15ec5441c3
commit 3399ee207e

View file

@ -7,13 +7,13 @@ module Middleman
module FileWatcher
IGNORE_LIST = [
/^bin\//,
/^\.bundle\//,
/^vendor\//,
/^\.sass-cache\//,
/^\.git\//,
/^\.gitignore$/,
/\.DS_Store/,
/^build\//,
/^\.rbenv-.*$/,
/^Gemfile$/,
/^Gemfile\.lock$/,
@ -36,6 +36,10 @@ module Middleman
files.reload_path(config[:data_dir])
end
app.after_configuration do
config[:file_watcher_ignore] << %r{^#{config[:build_dir]}\/}
end
# After config, load everything else
app.ready do
files.reload_path('.')