1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/middleman-core/fixtures/destination-dir-different-from-source-dir-name
Tom Dunlap 6dd44e4436 Fix reload of watched sources with destination_dir (#2190)
Previously when `config.rb` specified a watched source, e.g.:

```
files.watch :source,
  path: File.join(root, '..', 'source1'),
  destination_dir: 'baz'
```

When running `middleman serve`:

The source showed on first render, but files did not reload after the
source was edited.

This commit fixes that issue in cases when:
- the `destination_dir` in inside the same directory as `source`
- the `destination_dir` is in a external directory form `source`
- the `destination_dir` has a different name from `source`

Fixes #2186.

Signed-off-by: Miranda Limonczenko <mlimonczenko@pivotal.io>
2018-09-10 12:56:27 -07:00
..
external Fix reload of watched sources with destination_dir (#2190) 2018-09-10 12:56:27 -07:00
my-app Fix reload of watched sources with destination_dir (#2190) 2018-09-10 12:56:27 -07:00