You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace .eleventyignore with addPreprocessor calls; fix file watching (#4609)
I only just noticed this week that apparently the change to
`.eleventyignore` in #4535 somehow caused a regression in the Eleventy
dev server's behavior, where many (but not all) files would no longer
trigger hot-reloading.
This wouldn't be the first time I've observed odd behavior with
`.eleventyignore`, and I had also since read about
[`addPreprocessor`](https://www.11ty.dev/docs/config-preprocessors/)
added in Eleventy v3 which would enable equivalent behavior with
less-exhaustive definitions, so I decided to go about replacing one with
the other.
However, that still somehow wasn't enough to resolve the broken watch
behavior. It's possible the previous `.eleventyignore` rule had somehow
been masking this and it's more related to our usage of
`addPassthroughCopy`. I've added explicit `addWatchTarget` calls which
seems to work around it.
This PR does not cause any changes to build output.
0 commit comments