Glob passthrough breaks watch in subdirectories #1513
Labels
feature: 🗄 passthrough copy
Related to the passthrough file copy feature
needs-reproduction
Having trouble reproducing! Can anyone confirm?
Describe the bug
I keep each page in its own directory (so
post/my-post/my-post.md
contains the content for/post/my-post/
) and images in that same directory that are passthrough-copied. The purpose of this is to keep a post together with its assets.However, this breaks watch: Changes to the
*.md
files do not trigger a rebuild.To Reproduce
Steps to reproduce the behavior:
post/A/A.md
and the following config:Also create a file
post/B.md
.Run
eleventy --serve
.The site is generated & served correctly. We could check this via a browser at
localhost:8080/post/A
.A.md
.Expected behavior
Eleventy automatically re-generates the site when A is saved.
Actual behavior
Nothing happens.
When we save
B.md
, the site regenerates (including the changes toA.md
).Environment:
Remarks
post/A/
in our example actually contains any files that are matched by the glob.B.md
above.addPassthroughCopy(...)
line eliminates the problem.The text was updated successfully, but these errors were encountered: