![Forrest logo](/images/logo.png)
nodemon:tldr:ba1eb
nodemon: Ignore specific files.
$ nodemon --ignore ${filename_or_directory}
try on your machine
The nodemon
command is used to restart a Node.js application automatically whenever changes are made to the files in the project.
The --ignore
option in the command allows you to specify certain files or directories that should be ignored by nodemon
when monitoring for changes.
${filename_or_directory}
represents the placeholder where you should replace it with the actual name of the file or directory you want to ignore. For example, if you want to ignore a file named config.js
, you would use nodemon --ignore config.js
.
By using the --ignore
option, you can prevent certain files or directories from triggering the restart of the Node.js application when changes occur in them.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.