Nuxt 3 is coming.. Discover more about it here!

Docs Examples Resources Blog Video courses
  • English
  • Français
  • Get Started
    • Installation
    • Routing
    • Directory Structure
    • Commands and Deployment
    • Conclusion
    • Upgrading
  • Concepts
  • Features
  • Directory Structure
  • Configuration Glossary
    • 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
  • Internals Glossary
  • Components Glossary
  • Deployment
Version: v2.15.7
  • English
  • Français
  • Get Started
    • Installation
    • Routing
    • Directory Structure
    • Commands and Deployment
    • Conclusion
    • Upgrading
  • Concepts
  • Features
  • Directory Structure
  • Configuration Glossary
    • 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
  • Internals Glossary
  • Components Glossary
  • Deployment
Version: v2.15.7

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 Mon, Jul 12, 2021

Configuration Glossary The vue.config Property
Configuration Glossary The watchers Property

Partners

  • Netlify
  • Google Chrome
  • Vercel
  • Strapi
  • Swell
  • Ship Shape
  • Layer0
  • Storyblok
Support Us
A landscape image A landscape image

Discover

  • Our team
  • Design Kit
  • Contact us

Help

  • Resources
  • Chat with us
  • Contribution guide

Support

  • Sustainability
  • Training

Settings

Subscribe to our newsletter

The latest news, articles, and resources, sent to your inbox monthly.

NuxtJS is an open source framework under MIT license.