I would like to restart and refresh the pages, with my app development while any of the html
page change or js
file change. to get this, I used the supervisor
one of the node
module. But it's only refresh when 'server.js' changes.
i used this command to run the supervisor
:
D:\Projects\socialApp>supervisor -e html,js app.js
Running node-supervisor with
program 'app.js'
--watch '.'
--extensions 'html,js'
--exec 'node'
Starting child process with 'node app.js'
Watching directory 'D:\Projects\socialApp' for changes.
Port Listing to 3000
crashing child
Starting child process with 'node app.js'
Port Listing to00 3000
crashing child
Starting child process with 'node app.js'
Port Listing to 3000
crashing child
Starting child process with 'node app.js'
Port Listing to 3000
crashing child
Starting child process with 'node app.js'
Port Listing to -- 3000
what i need to do to refresh the brower while the html changes.
I prefer: whenever a file is changes in my app folder, I would like to refresh the browser and restart the server.js
if it required.
Any good and simple approach please?