feat(nuxt): add watch option and refactor dev server restarting#19530
Conversation
|
|
atinux
left a comment
There was a problem hiding this comment.
Looks much better now and also bringing back a needed feature from Nuxt 2 to Nuxt 3 (ie: Tailwind module for instance)
|
This feature hasn't been added to the documentation yet. |
|
How do you use this? I tried all imaginable combinations of |
|
@KnifeFed Those paths need to be absolute. I've merged a fix to allow you to use paths relative to your |
|
Is the fix for relative paths confirmed to be merged? I've tried every variation, but the watcher only works with abspath for me on nuxt 3.6.0 |
|
@FreekVR Yes, this was merged. If you are experiencing a regression, please do open a new issue with a reproduction. |
|
I'm so sorry but i'm trying to do it with nuxt 3.6.5 and it doesn't restart the app. Both with the absolute url and with the relative one |
|
Let's track in #22272. |
🔗 Linked issue
❓ Type of change
📚 Description
This provides a number of improvements to the dev server restarting behaviour:
builder:watchhookWhat's more, because we're moving the logic into the ad-hoc modules that actually care about this, it should mean we integrate better with upcoming nuxi-ng, but definitely cc: @pi0 in case you foresee any issues here.
📝 Checklist