This commit is contained in:
Thomas Reynolds 2016-03-25 10:16:54 -07:00
parent b950af89ac
commit 55230229f6

View file

@ -13,9 +13,15 @@ class Middleman::Extensions::ExternalPipeline < ::Middleman::Extension
return if app.mode?(:config) return if app.mode?(:config)
require 'thread' require 'thread'
require 'fileutils'
source_path = File.expand_path(options[:source], app.root)
# Make sure it exists, or `listen` will explode.
::FileUtils.mkdir_p(source_path)
@watcher = app.files.watch :source, @watcher = app.files.watch :source,
path: File.expand_path(options[:source], app.root), path: source_path,
latency: options[:latency], latency: options[:latency],
frontmatter: false frontmatter: false