--watch-preserve-output
新增于: v19.3.0, v18.13.0
当监视模式重新启动进程时禁用控制台的清除。
\Disable the clearing of the console when watch mode restarts the process.
node --watch --watch-preserve-output test.js
当监视模式重新启动进程时禁用控制台的清除。
\Disable the clearing of the console when watch mode restarts the process.
node --watch --watch-preserve-output test.js