• Docs
  • Modules
  • Showcase
  • Nuxters
  • Resources
  • Updates
61K
  • Get Started
  • Structure
  • Guide
  • API
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
    • alias
    • build
    • buildDir
    • cli
    • css
    • components
    • dev
    • dir
    • env
    • extendPlugins
    • generate
    • globalName
    • head
    • hooks
    • ignore
    • loading
    • loading indicator
    • mode
    • modern
    • modules
    • modulesDir
    • plugins
    • render
    • rootDir
    • router
    • RuntimeConfig
    • server
    • serverMiddleware
    • srcDir
    • ssr
    • target
    • telemetry
    • transition
    • vue.config
    • watch
    • watchers
    • The context
    • $nuxt: The Nuxt helper
    • Nuxt Modules
    • Nuxt Class
    • Renderer
    • Module Container
    • Builder
    • Generator
    • Using Nuxt Programmatically
    • render
    • renderRoute
    • renderAndGetWindow
    • Fetch Hook
    • Head Method
    • Key Property
    • Layout Property
    • Loading Property
    • Middleware Property
    • Transition Property
    • scrollToTop Property
    • Validate Method
    • WatchQuery Property
  1. API
  2. Configuration
  3. watch

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.

Was this helpful?

Report an issue or Edit this page on GitHub

vue.config

A config object for Vue.config

watchers

The watchers property lets you overwrite watchers configuration in your nuxt.config.js.

Community

  • Become a Sponsor
  • Master Nuxt
  • Nuxt Certification
Nuxt on DiscordNuxt on BlueskyNuxt on XNuxt on GitHub

Community

  • Nuxters
  • Team
  • Design Kit

Explore

  • Templates
  • Showcase
  • AI Evals

Enterprise

  • Agencies
  • Sponsors

Stay updated on new releases and features, guides, and community updates.

Nuxt on XNuxt on BlueSkyNuxt on LinkedInNuxt on DiscordNuxt on GitHub

Copyright © 2016-2026 Nuxt - MIT License