-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix(nuxi): restart nuxt when distDir
is unlinked
#19131
fix(nuxi): restart nuxt when distDir
is unlinked
#19131
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.
What a great idea!
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.
This is a very nice fix.
distDir
is unlinked
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.
Good idea! We might extend/change it later to other dirs such as .cache
since we not always remove top level dist
π Linked issue
resolve #15069
β Type of change
π Description
Hi π
this adds a watcher on
.nuxt/dist
. The dev server would reload nuxt by itself if thedist
directory has been removed.This would avoid to manually restart the server.
Use case:
npm install another-package
in another terminalpostinstall
is run withnuxi prepare
, clear buildDirctrl
+ C, β¬οΈ ,enter
, wait for server to restart --- nuxt readyπ Checklist