我的项目中有一个nodemon配置,verbose
是什么意思,它有什么作用
{
"verbose": true,
"watch": "./server"
}
我已经阅读了nodemon的自述文件,没有在谈论它
最佳答案
详细表示健谈,此处是为了确保您从nodemon获得更多信息(跟踪)。在调试某些代码时很有用。
没有详细模式的示例:
[nodemon] 1.19.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node test.js`
Hello Nodemon
[nodemon] clean exit - waiting for changes before restart
启用了详细模式的示例:
[nodemon] 1.19.1
[nodemon] reading config ./nodemon.json
[nodemon] to restart at any time, enter `rs`
[nodemon] or send SIGHUP to 43148 to restart
[nodemon] watching: *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node test.js`
[nodemon] forking
[nodemon] child pid: 43150
[nodemon] watching 7 files
Hello Nodemon
[nodemon] clean exit - waiting for changes before restart
关于javascript - nodemon配置文件中的详细含义是什么?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/59376733/