watching .webc components rendered in a nunjucks template #2958
Unanswered
w0whitaker
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I have an
.njk
template that renders a.webc
component, changes made to the component do not get updated without restarting the dev server. Is it possible to make that happen?what happens:
This renders as expected. But if I change the component to:
Eleventy recognizes that the file has changed:
then this:
and a litte later:
Does this mean I need to register
my-component.webc
as a dependency of./src/index.njk
? I see in the docs that dependency mapping for Nunjucks is "Unlikely due to Nunjucks API limitations."I'm not really sure, but it sounds like restarting the dev starter is the only way to update what gets rendered. Is that true?
my setup
package.json
:Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions