In my Node.js application, I use Nodemon to automatically restart my application when I make a code change.
But I have a specific JSON file that gets updated that I don't want the application to restart for.
How can I configure Nodemon to ignore that file?
Nodemon has an
--ignore flag you can add to the
Ignore a file:
nodemon ignore lib/data.json
You can also do a pattern to ignore changes in all
nodemon --ignore '*.json'