Skip to content

Configuration when the vite app is in an app dir #108

Answered by MrBin99
ftimurs asked this question in Q&A
Discussion options

You must be logged in to vote

If I unerstand, you have one vite.config.js in each app ?

I suggest you, if you can, to have one frontend pipeline for all your apps (one vite.config.js at the root).
It has many advantages : it's be simpler to configure, you can share dependencies between your React apps and the most important you can customize how vite will split the code, producing of file per apps, if this is the desired behaviour : https://vitejs.dev/guide/build.html#chunking-strategy

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MrBin99
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