Original Discussion: https://www.pika.dev/npm/snowpack/discuss/264
/cc @bjarkihall, @FredKSchott
Currently, we throw a gross-looking error if the 8080 port is taken. Instead, we should:
--port to specify a different port.@FredKSchott This will also need to modify the HMR port as well
Great call. There's a PR to default to using the same port for HMR, which I think would solve for this as well, since we're only talking about this feature for the default "no explicit port defined" user.
For reference, something like this will end up being the final result. https://github.com/facebook/create-react-app/blob/c87ab79559e98a5dae2cd0b02477c38ff6113e6a/packages/react-dev-utils/WebpackDevServerUtils.js#L448
@jihchi Are you planning on tackling the second PR? If not, I will try tackling it.
@stramel please go ahead.