Skip to content

Commit

Permalink
docs: update clear console advice
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
remy committed Feb 6, 2019
1 parent 3dfd5cc commit df3e08d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ In your `nodemon.json` (or in your `package.json`) you can include the follow ev
```json
{
"events": {
"start": "node -e 'console.clear()'"
"start": "cls || clear"
}
}
```

Note that on Windows, this will clear the scroll buffer too. If you try to use node to clear the screen, you may have a race condition between the boot time of your process and the start event. This method should be the fastest.

# nodemon doesn't restart on .env change

This is an edge case with how nodemon watches files. This is because nodemon doesn't know if `.env` is a hidden file with no extension or a `*.env` without a filename.
Expand Down

0 comments on commit df3e08d

Please sign in to comment.