How tauri integrates multiple front-end frameworks #5035
-
I have an old project using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If they are using the same frontend bundler, you may be able to use a feature like this https://vitejs.dev/guide/build.html#multi-page-app. Not 100% sure if it works with different frameworks tbh, but if it works this would make it super easy, especially setting up the devPath. In a more general sense: You basically just need to make sure that both frontends land in the same |
Beta Was this translation helpful? Give feedback.
If they are using the same frontend bundler, you may be able to use a feature like this https://vitejs.dev/guide/build.html#multi-page-app. Not 100% sure if it works with different frameworks tbh, but if it works this would make it super easy, especially setting up the devPath.
In a more general sense: You basically just need to make sure that both frontends land in the same
distDir
and then you need to set each window's url accordingly, relative to the distDir.Setting the
devPath
+ window urls for development may be a little tricky tho (unless one of your frontends can proxy to the other). You probably have to play around with using multiple tauri configs (one for dev and one for build)…