in this article, we’ll show you how to use the --watch flag, what is the --watch flag? the --watch flag is a feature in node.js that allows your server to automatically restart whenever you change...
本文介绍了node.js中的--watch标志,该标志使服务器在代码更改时自动重启,类似于nodemon,但无需安装第三方包。通过更新package.json并运行npm run dev,服务器即可实现自动重启。