Skip to content
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

How to kill processes on rebuild #2

Open
vladshcherbin opened this issue Jul 9, 2018 · 4 comments
Open

How to kill processes on rebuild #2

vladshcherbin opened this issue Jul 9, 2018 · 4 comments

Comments

@vladshcherbin
Copy link

For example, after bundling I execute it and it starts a server (node process on port 3000). When file is changed in watch mode, bundle rebuilds and same process tries to spawn again w/o previous being removed.

Is it somehow possible to kill process on rebuild in watch mode?

@audinue
Copy link
Owner

audinue commented Aug 6, 2018

On windows it is taskkill /f /im app.exe.

@vladshcherbin
Copy link
Author

@audinue I'm not using windows :) Maybe it's possible to use something like this package?

@audinue
Copy link
Owner

audinue commented Apr 13, 2019

Anything is possible I think :)

@GerkinDev
Copy link

It could be managed using a Set of child processes, that could be killed when the generateBundle (or other hooks, as suggested in PR #11 & issue #3) is triggered again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants