-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
library is 857MB #1630
Comments
There are a few ways to minimize the size of the SDK used in an application. If you're using a tool like webpack or browserify, you can You can also use the SDK's Browser Builder, which will build a custom version of the SDK including only the services you select. By default, the browser builder includes all services that support CORS. I just ran the browser builder to get a default build and a build with all services, and the minified and gzipped files are 198K and 249K, respectively: $ ls -lh
-rwxrwxrwx 1 root root 1.6M Jul 16 10:42 aws-sdk-2.85.0-all.min.js
-rwxrwxrwx 1 root root 249K Jul 16 10:45 aws-sdk-2.85.0-all.min.js.gz
-rwxrwxrwx 1 root root 1.2M Jul 16 09:48 aws-sdk-2.85.0.min.js
-rwxrwxrwx 1 root root 198K Jul 16 10:45 aws-sdk-2.85.0.min.js.gz Out of curiosity, where did you get an 857MB build of the SDK? Even downloading an archive of the full repository (tests, docs, and all) from the releases tab on GitHub is only 5.5MB. |
Thanks for the suggestions. I used bower install. |
Inside of the artifact bower pulls down is a |
Actually, I think I'm wrong about the size :
What do you make of that?!
It seems So, I guess 'nothing to see here' :) Sorry for the noise. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
This library is pretty big. For PWAs it would be desirable to store it in the sw cache and space is limited. I imagine the app could download it only when it's online, but that is quite 'awkward'.
Is there any prospect of reducing its size, or perhaps making it modular?
The text was updated successfully, but these errors were encountered: