Static sites on IPFS: Webpack vs. dependencies sharing
guysv opened this issue · 0 comments
guysv commented
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?