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

"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.

 

posted on 2019-06-22 19:12  深蓝88  阅读(1678)  评论(0编辑  收藏  举报

导航