You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
In my package.json:
"scripts": {
"onchange": "./node_modules/onchange/cli.js",
"listen": "npm run listen:*",
"listen:a": "npm run onchange -- \"./file_a\" -- npm run doonchange:a",
"doonchange:a": "# do awesome things",
"listen:b": "npm run onchange -- \"./file_b\" -- npm run doonchange:b",
"doonchange:b": "# stop listening on file_a changes ",
}
In my terminal:
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:
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.
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: