Nuxt 2 reached end of life on 30 June 2024
It no longer receives bug fixes or security patches. Upgrade to Nuxt 4 or get extended support from HeroDevs
The watch Property
The watch property lets you watch custom files for restarting the server.
- Type:
Object - Default:
[]
watch: ['~/custom/*.js']chokidar is used to set up the watchers. To learn more about chokidar's pattern options, see the chokidar API.