middleman/middleman-core/fixtures/multiple-sources-with-duplicate-file-names-app/config.rb
Steven Sloan 3b1a00cf47 allow setting a destination_dir for SourceWatchers
This change lets a source be defined with a destination directory. That way we can mount a source (say a gem’s ‘doc’ directory) in a namespace and worry less about name collisions with  files in other sources.
2015-04-17 16:46:39 -04:00

2 lines
102 B
Ruby

files.watch :source, path: File.join(root, 'source2'),
destination_dir: 'source2'