I have simple hackathon nodejs boilerplate i changed few things actually. I installed nodemon and plugin to watch scss. I start both scss plugin and nodemon but everytime i reload page(f5) or write url it restart(due to change). It restarts even when i disable scss plugin. Problem began after i started using my own nodemon.json file
{
"ext": "css,js"
}
when i remove that file everything is allright.
Any idea what i can do? This is boilerplate i am using https://github.com/sahat/hackathon-starter
To exclude extensions (which I believe you want to exclude .scss and .css since those would be updated by the sass watcher), you can do an exclude in your nodemon.json
{
"ignore": ["*.css", "*.css.map", "*.scss"],
"ext": "js"
}
This should work since the css path shouldn't change in any way (the location / names of the scss/css files will be the same) so any time code goes to look for them, they will get the latest version.
If you are using the starter, you might want to consider ignoring the public directory all together since the latest version will always be shipped by the backend:
{
"ignore": ["public*"]
}