Skip to content

How tauri integrates multiple front-end frameworks #5035

Answered by FabianLars
wkl007 asked this question in Q&A
Discussion options

You must be logged in to vote

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)…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wkl007
Comment options

Answer selected by wkl007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants