vite
vite copied to clipboard
fix: external URLs don't have to start with http(s)
Description
Right now, when building, vite checks if the base
provided is an external URL by checking if it starts with https://
or http://
. This doesn't have to be the case. When working with electron, for example, one can create a custom protocol, then load the page with it. Right now setting the base
to sandbox://
causes a broken app in electron. This PR fixes it.