You are browsing Nuxt 2 docs. Go to Nuxt 3 docs, or learn more about Nuxt 2 Long Term Support.

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 .

Edit this page on GitHub Updated at Thu, Dec 18, 2025