play with fixing live reload
This commit is contained in:
parent
f3bd7bd3d1
commit
3a7d30164d
2 changed files with 9 additions and 4 deletions
|
@ -10,11 +10,16 @@ module Middleman::Features::LiveReload
|
|||
end
|
||||
|
||||
new_config = ::LiveReload::Config.new do |config|
|
||||
config.exts = ::Tilt.mappings.keys
|
||||
::Tilt.mappings.each do |key, v|
|
||||
config.exts << key
|
||||
end
|
||||
end
|
||||
|
||||
# Middleman::Server.public
|
||||
pid = fork {
|
||||
require 'livereload'
|
||||
::LiveReload.run [Middleman::Server.views], new_config
|
||||
}
|
||||
|
||||
end
|
||||
alias :included :registered
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue