Fix #1857
This commit is contained in:
parent
b950af89ac
commit
55230229f6
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue