nodejs 服务器热更新
Introduced in front of building nodejs server but did not add hot update. So I searched nodemon plug
1: Global introduction
npm install -g nodemon
2: as dependencies introduced
npm install --save-dev nodemon
There are two ways to start a direct command line input nodemon app.js
Another added package.json command line
"start": "nodemon app.js "
Npm start to run
Then followed by studies at the browser hot update
However, the addition of hot server update after accounting for a good memory, but also stuck a few times, with no need also debatable.