Categories
JavaScript Answers

How to watch directory for changes with nodemon?

Spread the love

To watch directory for changes with nodemon, we use the --watch option.

For instance, we run

nodemon --watch src server.js

to use the --watch option to watch the src folder for changes when running server.js.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published.