I'm using nodemon in my nodejs application to track changes in any of the project files. If there is any change discovered, the project has to restart. Nodemon does this job perfectly.
But my requirement is to check for a specific file for any change (Right now, Nodemon checks the entire project files for changes)
I have tried using this: Nodemon -e “.js” app.js which will only check files with extension .js. How can I check one specific file with nodemon.
And can anyone suggest a module(for the same purpose) in nodejs which can be used in production level( since nodemon is used only for development purposes?)