You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After building too many files, can all css and js files be merged? Since the project is not large, I feel that too many requests are not more efficient than individual ones.
Describe the proposed solution
Is it possible to add a configuration to decide whether the code needs to be split? After trying the vite configuration item build-rollupOptions-output-manualChunks, it seems to have no effect and will prompt an error
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered:
dummdidumm
changed the title
After building too many files, can all css and js files be merged? Since the project is not large, I feel that too many requests are not more efficient than individual ones.
Allow more control over file split / ability to merge js files
Mar 27, 2023
For windmill (https://github.com/windmill-labs/windmill), we are building a big single-page-app, and it would make it a lot easier if we could just have one bundle-.js to download
Since the project is not large, I feel that too many requests are not more efficient than individual ones
That doesn't seem accurate without more details. The files will be downloaded in parallel, so there's no performance hit to splitting them. There are however several performance wins to splitting the files. It means you don't need to request all the JS for the site, but only for the page you're on. It also means better caching when you update your site as only the files that have changed need to be re-requested instead of re-downloading all the JS for your whole site
Describe the problem
After building too many files, can all css and js files be merged? Since the project is not large, I feel that too many requests are not more efficient than individual ones.
Describe the proposed solution
Is it possible to add a configuration to decide whether the code needs to be split? After trying the vite configuration item build-rollupOptions-output-manualChunks, it seems to have no effect and will prompt an error
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: