Looks like when I do fs.writeFile(), the changed file restarts nodemon. How to make it not restart?
Add the name/s of the file/s you're creating to a file called nodemon.json
, and place it at the root of your working folder:
{
"ignore": ["*.test.txt", "myfiles/*"]
}
See other options here.