-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(nuxt): add watch
option and refactor dev server restarting
#19530
Conversation
Β Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:watch
hookWhat'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