With Nodemon, you can specify what other files to watch for changes. For example, I can have Nodemon restart my server when my `.env` file changes. Can you do the same with `node --watch`?
Hello @gyenabubakar You can use the `--watch-path` option in CLI. For example, `node --watch-path=./src --watch-path=./tests index.js` `--watch` is great for simple use cases, but if you need custom behaviour, or if you need to watch non-js files, nodemon might be the right option for you.
this channel is underrated. I am guilty to 4 out of 5 tips you have there !
Thank you for the kind words 💜
Great video. I had been dependent on all those extra libraries for so long. I am so glad that I found this video. Thank you sir 💯🎊🎉
Thank you for you comment @harshthosar8600, really glad this was useful.
please make a playlist for debugging properly and efficiently.
With Nodemon, you can specify what other files to watch for changes. For example, I can have Nodemon restart my server when my `.env` file changes. Can you do the same with `node --watch`?
Hello @gyenabubakar
You can use the `--watch-path` option in CLI. For example, `node --watch-path=./src --watch-path=./tests index.js`
`--watch` is great for simple use cases, but if you need custom behaviour, or if you need to watch non-js files, nodemon might be the right option for you.
@@TechVisionExplained sweet! Thank you!
Thank you for this video!
Thank you @brunohenri297, really glad you enjoyed the video
you are amazing dudeeeeee❤👊
Thanks 🤜🤛
Great Video
Thank you @FodeOukare-wk9wc