-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Way to stop listening on changes #49
Comments
I can't think of any way beyond writing the PID to disk and reading it again later to kill the process. Not sure if something similar to that works on Windows. If there is, I can look at building it into the package, but until then I'll leave the issue open for others to comment. |
I finally use "callback": "echo 'foo'",
"listener": "onchange ./listened -- npm run callback",
"listener:ps:c": "pm2 start --name listener.ps npm -- run listener",
"listener:ps:d": "pm2 delete listener.ps" This allows to stop listening |
While the above didn't work for me, using
and
|
Hi there, I am wondering if there is a cross-platform way to stop listening on changes. For instance, do you have an idea of how to achieve this behavior:
package.json
:npm run listen # Listening on changes until I change my `index.js` file
PS : Really usefull/powerfull package, thank you!
The text was updated successfully, but these errors were encountered: