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 watchers Property

The watchers property lets you overwrite watchers configuration in your nuxt.config.js.
  • Type: Object
  • Default: {}

chokidar

  • Type: Object
  • Default: {}

To learn more about chokidar options, see the chokidar API.

webpack

  • Type: Object
  • Default:
watchers: {
  webpack: {
    aggregateTimeout: 300,
    poll: 1000
  }
}

To learn more about webpack watchOptions, see the webpack documentation.

What's next

Check out the Internals Glossary book