-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Is there a way to merge all JS build files in only one bundle? #6548
Comments
No, this is by design to enable code splitting and other optimizations which make Gatsby so fast. |
@LekoArts Ok, thanks for your answer! Closing this issue. |
We did move js/css files into their own directory recently #6346 |
It would be great if there was an option to bundle it all into one file, because right now offline support (with It would be so nice if there was an option to have one big bundle that a service worker could cache, and then you could automatically have a fully offline-available site. I asked a question along those lines eariler here but there was no response, and it was automatically closed. |
I'm using gatsby as a single page application generator, so I only have one page. In this case, having one file (and one request) instead of 4-5 would be the more performant route. Shouldn't be too hard to have an option/plugin that just appends the JS file and give this as an option. cc @LekoArts |
Hey guys, enjoying a lot my experience here with Gatsby, it's really nice!
There is something I want to know, when I run
gatsby build
, it generates a ton of files on public directory:Is there a way to envolve all of this in a single bundle file?
Thanks!
The text was updated successfully, but these errors were encountered: