📜  环回中的节点 mon - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:07.098000             🧑  作者: Mango

代码示例1
install nodemon: npm i --save-dev nodemon
open package.json in section scripts add new line: "dev" : "nodemon server/server.js --watch common --watch server"
run your server with command: npm run dev

 in package.josn file add this one
"nodemonConfig": {
  "verbose": true,
  "watch": [ "src/" ],
  "ignore": [ "dist/*" ],
  "ext": "ts",
  "exec": "npm start"
 }