I have an express app. I am using swig as the template engine.
Is it possible to reflect my HTML changes in the browser when I click refresh. I don’t want to restart the server every time I need to do a HTML change?
I have an express app. I am using swig as the template engine. Is
Share
I got the solution from this link.
I installed supervisor module as global installation
I stated my app like this
Here i am specifying to watch the changes in files with extensions .html and .js.
So when these files are changed its automatically reloaded when the next request comes.No restart required.