How to add a Watch to a custom file that restart nuxt?
As happens when we edit .env for example
7 Replies
Take a look at vite-plugin-watch https://github.com/lepikhinb/vite-plugin-watch
GitHub
GitHub - lepikhinb/vite-plugin-watch
Contribute to lepikhinb/vite-plugin-watch development by creating an account on GitHub.
It should get you going fast
Oh it’s already built in. Nevermind my comment
yes! Would be perfect, but seems not work
Try absolute paths? https://github.com/nuxt/nuxt/issues/22272
GitHub
nuxt.options.watch
not restarting dev server · Issue #22272 · nux...Environment npx nuxi info Nuxi 3.6.2 16:43:20 16:43:20 RootDir: D:/work/projects/userquin/GitHub/userquin/vuetify-nuxt-module-main-2 16:43:20 Nuxt project info: 16:43:20 ---------------------------...
no, but thanks anyway 😦
hey does anyone know if theres a way to remove files from the watch list with this?