Build every js files in a single file #8236
Replies: 4 comments 3 replies
-
Since Vite v2.9, there is no longer code splitting into index/vendor by default. So without the configuration, you should already be getting a single JS file. Maybe you could provide a reproduction using https://vite.new/vue so others can better understand your issue |
Beta Was this translation helpful? Give feedback.
-
Hi, i have the same problem with a new laravel app (with vite integration), after doing npm run build vite generates 1 file per component and i need just the vendor and index files |
Beta Was this translation helpful? Give feedback.
-
Have anyone had solution for that? |
Beta Was this translation helpful? Give feedback.
-
dynamic import in vue-router I think |
Beta Was this translation helpful? Give feedback.
-
Hey, i'm using Vite with Vue 3 and I would like to build every javascript files in a single .js file, is there a way to do it?
Beta Was this translation helpful? Give feedback.
All reactions