thesuhu

Nodemon

Jul 31st, 2021
873
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # In order to make NodeMon ignore a bunch of files from monitoring, you can start it as
  2.  
  3. nodemon --ignore PATTERN [--ignore PATTERN2]
  4. # where PATTERN is the name of a specific file, directory, or wildcard pattern. Make sure that if you use a wildcard, it is escaped.
  5.  
  6. # For example
  7. nodemon --ignore 'lib/*.js' --ignore README
  8.  
  9. # Alternatively, if you want to configure that behaviour instead, try creating a nodemon.json file in your current working directory,
  10. # or your home directory. You can configure ignoring some files by adding something like the following to this config file:
  11.  
  12. {  
  13.     "ignore": ["lib/*.js", "README"]
  14. }
  15.  
  16. # Refer the README file at https://github.com/remy/nodemon for more details.
RAW Paste Data