Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Bundle size updates #584

Closed
Kubuxu opened this issue Aug 17, 2017 · 7 comments
Closed

Bundle size updates #584

Kubuxu opened this issue Aug 17, 2017 · 7 comments

Comments

@Kubuxu
Copy link

Kubuxu commented Aug 17, 2017

Currently js-ipfs-api creates bundle of 1.3MB (I might be wrong).
This means that it can be hardly used in websites as for its huge size. As it is supposed to be just a connector to go-ipfs/js-ipfs, is there a way to make it smaller?

@daviddias
Copy link
Contributor

@Kubuxu where are you getting that number? Depends on bow you are bundling it. It should be just ~660KB.

660KB is still big and that is why we pushed the endeavour of enabling modular support which was completed by @nunofmn. See submodule bundle sizes here:
https://github.com/ipfs/js-ipfs-api/blob/master/examples/sub-module/bundles-size-KBs.csv

@daviddias
Copy link
Contributor

Also, when this ipfs/kubo#4082 gets released, we will be able to complete #522

@daviddias
Copy link
Contributor

@Kubuxu ?

@Kubuxu
Copy link
Author

Kubuxu commented Aug 23, 2017

It was information I was given on IRC. 600KB is much better yet it is still quite big.

There is also https://github.com/SilentCicero/ipfs-mini

@daviddias
Copy link
Contributor

daviddias commented Aug 23, 2017

Thanks for reminding me, @Kubuxu. I had in mind opening a issue on that module once the modularization of js-ipfs-api was done.

Issue opened now: SilentCicero/ipfs-mini#6

@Kubuxu could you point the IRC people to this issue?

@daviddias daviddias changed the title js-ipfs-api gives huge bundle Bundle size updates Aug 26, 2017
@daviddias
Copy link
Contributor

Closing, let me know if this question is asked again.

@daviddias
Copy link
Contributor

It is going to get even smaller, @Kubuxu see: a5cb06e#r137276795

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants