Restart nodemon when html or css file is modified

Ankan Saha - Oct 12 '22 - - Dev Community

Nodemon is a utility that monitor for any changes in your source and automatically restarts your server. It's a great utility for development as it saves you from manually restarting your server every time you make a change.

  1. Install nodemon using npm:

npm install -g nodemon

  1. Use nodemon to run your node.js application:

nodemon <your_app.js>

  1. Your application will now automatically restart when any changes are made to your code.

To Refresh Nodemon on all file modification, use this steps :

  1. Make a nodemon.json on your Project working directory

  2. include {"ext":"html,css,js,cjs,mjs,json,pug"} in nodemon.json File

  3. Now Run Nodemon File again

. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player