ipfs / notes

IPFS Collaborative Notebook for Research
MIT License
402 stars 30 forks source link

Static sites on IPFS: Webpack vs. dependencies sharing #383

Closed guysv closed 5 years ago

guysv commented 5 years ago

Deploying webpack bundles to IPFS is a not uncommon. Because dependencies are squashed into application-unique files, its impossible to share mutual dependencies with other application

This is a question of trade-offs: Webpack employs several techniques to reduce total application size, but then only application users could seed it. On the other hand, if multiple applications share common dependencies together, there are more potential seeders for the app resources. (and we get HTTP caching for free)

Why should we prefer one way over the other?