Multiple Preloaders for each Renderers #838
Unanswered
AlessioBottin
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Although vite supports multiple entry HTML files, it does not support multiple entry points for library compilation. What can solve your problem is creating a copy of an existing preload package and building it as an independent package. However, I don't understand situations where different renderers might need different preloader contexts |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am sorry this the second time i ask for help in a few days, but this is my first time using Electron, Vite and Typescript(I already know js) so it has been a bit challenging trying to figure out the optimal place where to write code and how to make changes at the project structure.
I wanted to use a different preloader for each renderer i have, the problem is: How do i configure vite config in such a way that it can take multiple entry points and make an out file for each one of them?
On Vite documentation i have found that build.lib.entry accepts only one argument and it must be a string, so I am wondering: is this is achievable or is there a better approach?
Beta Was this translation helpful? Give feedback.
All reactions