-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
This is basically a clone of brunch/brunch#920, but for context:
I would like to automatically run webpack --watch as part of my application but, when it shuts down, the webpack process persists and continues running. I have observed that my application does close STDIN, however, webpack --watch is not checking if STDIN was closed or not. These two lines solve the issue:
process.stdin.on('end', function() { process.exit(0) });
process.stdin.resume();See matthewlehner/webpack@879ab0b for the fix, implemented.
I can send a pull request for this, but am wondering if this should always run this or if it should be it opt-in.
superhawk610