How do I refresh the page automatically when I save the project?

-1

How to refresh the page automatically when saving the project to automate the job ?. To further automate design like in Cordova designs.

    
asked by anonymous 11.05.2018 / 06:16

1 answer

2

I think what you are looking for is Nodemon :

  

Nodemon is a utility that monitors any source code changes and automatically restarts your server. Perfect for development. [...] Just use Nodemon instead of Node to run your code, and now your process will restart automatically when the code changes.

You can install globally on your machine via npm using the npm install -g nodemon command. This way it is available in all projects that work on your machine but never stays in the dependencies of the projects.

You can also install nodemon as a dependency of dev on your projects using npm install nodemon --save-dev .

    
11.05.2018 / 10:39