Call middleman build
to work-around a problem in middleman.
This commit is contained in:
parent
60dc1fee0e
commit
e1c44aa9d3
1 changed files with 1 additions and 2 deletions
|
@ -36,8 +36,7 @@ module Middleman
|
||||||
end
|
end
|
||||||
if build_before
|
if build_before
|
||||||
# http://forum.middlemanapp.com/t/problem-with-the-build-task-in-an-extension
|
# http://forum.middlemanapp.com/t/problem-with-the-build-task-in-an-extension
|
||||||
builder = ::Middleman::Cli::Build.new(args=[], options={:instrument=>false})
|
run("middleman build") || exit(1)
|
||||||
builder.build
|
|
||||||
end
|
end
|
||||||
send("deploy_#{self.deploy_options.method}")
|
send("deploy_#{self.deploy_options.method}")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue