Dustin J. Mitchell
Dustin J. Mitchell
I'm guessing that someone is making a HTTPS connection to the PB port - either misconfiguration or a portscan.
`start-server-webpack-plugin` has a `signal` option, but experimentally setting that to 'SIGINT' doesn't seem to help: it happily kills the process on HMR change, but doesn't restart it. The webpack plugin...
I wrote https://github.com/djmitche/neutrino-middleware-restart-server which serves this purpose. So maybe the fix here is to use that plugin instead in the `node` preset?
It's on npm.. https://www.npmjs.com/package/neutrino-middleware-restart-server
Ah, so break up the webpack plugin and the neutrino middleware?
Although, if we do that, maybe we should at least start by asking the start-server author if they are willing to support restart as well.
https://github.com/ericclemmons/start-server-webpack-plugin/issues/28
Looks like there's a decent chance we can get start-server to behave this way, which would save a lot of trouble :)
I don't know what Koa is (and it has no README to tell me), but I'm not using it, so that doesn't seem like the right choice. This would always...
Yes, the use-case here is the not-a-server use-case you mention, so I think we agree?