What to do to serve your svelte app over https for development purposes.
Note that this generates a self-signed certificate, which your browser WILL warn you about. For non-production uses, this is perfectly acceptable though.
You might need to add the generated certificate to your browsers, so the live reload request is not blocked by your browser. Or grab the live reload request form the debugging console and add the exception manually.