Add custom files to watch for restarting nuxt (just like `nuxt.config.ts`)
Hi, in my
nuxt.config.ts
, I am importing some typescript files. When changing the nuxt.config.ts
file, or e.g. the .env
file of a project, nuxt gets restarted. I want to archive the same, so that when I edit one of the files imported, nuxt should also restart:
so in this case if either generateSitemap.ts
or cookieConfig
is edited, I want to restart the whole nuxt server.5 Replies
did you find a solution ?
@plcdnl there was a PR two days ago that fixes this: https://github.com/nuxt/nuxt/pull/19530#issuecomment-1646964776
GitHub
feat(nuxt): add
watch
option and refactor dev server restarting b...π Linked issue
β Type of change
π Documentation (updates to the documentation or readme)
π Bug fix (a non-breaking change that fixes an issue)
π Enhancement (improving an existing functionality...
itβs not yet released though
Except on the edge channel π