Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow more control over file split / ability to merge js files #9520

Closed
muzidudu opened this issue Mar 26, 2023 · 4 comments
Closed

Allow more control over file split / ability to merge js files #9520

muzidudu opened this issue Mar 26, 2023 · 4 comments
Labels
feature request New feature or request
Milestone

Comments

@muzidudu
Copy link

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.

截屏2023-03-27 01 43 37

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
截屏2023-03-27 01 51 37

Alternatives considered

No response

Importance

would make my life easier

Additional Information

No response

@dummdidumm 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
@dummdidumm dummdidumm added the feature request New feature or request label Mar 27, 2023
@dummdidumm dummdidumm added this to the non-urgent milestone Mar 27, 2023
@UltraCakeBakery
Copy link

I've been waiting for #3882 to get picked up one day. Isn't this a duplicate of that one?

@rubenfiszel
Copy link

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

@benmccann
Copy link
Member

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

@benmccann
Copy link
Member

Closing as duplicate of #3882

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants