I've made investigation today using vue cli, and that's what I got:
vue : 61.77 kb
vue + vue-socket.io-extended : 132.10 kb
vue + vue-socket.io-extended + custom socket.io-client : 190.87 kb
There is a duplication of socket.io-client
library when you pass socket.io-client
instance to the plugin.
So if you use it this way, you probably have extra ~70kb
of useless data in your build.
The only way to fix it is to force library user to pass socket.io-client
instance always.
Advantages:
socket.io-client
(e.g. ~70Kb
)socket.io-client
for usersocket.io-client
inside the library (update library just because socket.io-client
updated)socket.io-client
, for example, socket.io-client/dist/socket.io.slim.js
which is ~8kb smaller than socket.io-client
but drops IE6-8Disadvantages:
d-corler and Alonso-GarnierBBDO
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4