Replies: 1 comment
-
You can add a separate vite configuration file for the renderer and use vite to build. In addition, you need to set root to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
we have an app based on electron-vite. Running great in electron.
Wanted to ask, what would be the best way to mock the electron parts to allow the app to run in the browser?
My goal would be to mock some of the
main
andpreload
functions in separate files for example inweb-main.ts
andweb-preload.ts
. It would be great if I could create a web build and electron build separetely.Any tip would be appreciated, how such a setup could be setup.
Here is the repo: https://github.com/intechstudio/grid-editor
Beta Was this translation helpful? Give feedback.
All reactions