Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: add
VITE_DEV_SERVER_URL
to electronprocess env, so that it is easier to use
fix(🐞): VITE_DEV_SERVER_HOST cannot be used directly when
VITE_DEV_SERVER_HOST is a ipv6 address or
vite config
server.host
is truefix(🐞): use vite config
mode
as default buildmode to avoid build mode not equal to vite config
mode
whenvite config
mode
!== 'development' which would lead to render envnot equal to electron main or preload
fix(🐞): build electron output after render to avoid the electron
output being deleted when the vite config emptyOutDir
is
true
and the vite command isbuild
fix(🐞): use
closeBundle
to replacewriteBundle
, because inextreme cases, an error will be reported. For example,
can't find preload module
will occur as an errorwhen
preload
update frequently