Nuxt 3 即將到來... 發現? 更多在 這裡 !

Discover
Showcases
Showcases

Selection of website built with Nuxt

Case studies
Case studies

How companies use Nuxt

Testimonials
Testimonials

What they think about us

Learn
Docs
Docs

Create fast websites easily

Examples
Examples

Understand everything in Nuxt

Tutorials
Tutorials

Learn with concrete cases

Master courses
Master courses

Learn more with experts

Explore
Deployments
Deployments

How to Deploy Nuxt

Modules
Modules

Extend the power of Nuxt

Themes
Themes

Get start with themes

Video Courses
Video Courses

Learn step by step

Community
Announcements
Announcements

Last news about Nuxt

Teams
Teams

They are Nuxt

Events
Events

When and where we gonna be

Releases
Releases

All the code we released

Sponsors
Sponsors

They trust us

Tweets
Tweets

They talk about us

Partners
English
Français
日本語
繁體中文
  • Get Started
    • Installation
    • Routing
    • Directory Structure
    • Commands and Deployment
    • Conclusion
    • Upgrading
  • Concepts
  • Features
  • Directory Structure
  • Configuration Glossary
  • Internals Glossary
  • Components Glossary
版本: v2.15.8 版本: v3.x (Beta)
English
Français
日本語
繁體中文
  • Get Started
    • Installation
    • Routing
    • Directory Structure
    • Commands and Deployment
    • Conclusion
    • Upgrading
  • Concepts
  • Features
  • Directory Structure
  • Configuration Glossary
  • Internals Glossary
  • Components Glossary
版本: v2.15.8 版本: v3.x (Beta)
Translated page Contents of this page might be outdated.
Read the original page Improve translation of this page

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 Sun, Oct 24, 2021

A landscape image A landscape image

About

  • Contact us
  • Enterprise support
  • NuxtLabs company
  • Open Source Software
  • Partnerships
  • Telemetry

Ecosystem

  • Announcements
  • Contribute
  • Chat with us
  • Events
  • Sponsors
  • Teams
  • Tutorials
  • Video courses

Resources

  • Design
  • Documentation
  • Examples
  • Integrations
  • Master courses
  • Modules
  • Releases
  • Showcases
  • Themes

訂閱

每月向您發送最新消息、文章和資源。