npm run dev 修改后自动重启服务器

时间:2021-10-19 08:37:44
"scripts": {
"dev": "supervisor index"
},

Running node-supervisor with
program 'index'
--watch '.'
--extensions 'node,js'
--exec 'node'

Starting child process with 'node index'
Watching directory 'C:\wamp\www\zhang\3jd\day1\router' for changes.
Press rs for restarting the process.