ooade / pimg

:camera: Mini Image Lazy Loader for P(R)eact and Vue
https://pimg.surge.sh
MIT License
99 stars 11 forks source link

Size is not 20 bytes #23

Closed feross closed 6 years ago

feross commented 6 years ago

Hey there! Neat package. Just wanted to let you know that the package size seems very wrong. If it was actually 20 bytes, that would mean the code literally fits in 20 characters, as each character is one byte. This is obviously impossible.

My guess is that the bundling command errored and you actually measured the length of the error message! 😅

Here's what I get:

$ cat pimg.js | gzip | wc -c
2035

So, roughly 2KB.

ooade commented 6 years ago

Yeah. I got the package size wrongly :sweat_smile: . Thanks alot :muscle: