BTW, congrats to the jetbrains team for the DCE, t...
# javascript
b
BTW, congrats to the jetbrains team for the DCE, tool. Went from a 2.5MB webpack bundle to a 240KB (50 compressed) 👍
👏 5
k
What tool do you use to compress it?
g
k
That gets it down to 240KB I think.
g
ohh, compressed? Maybe just gzip?
k
Right but you need need to send it over to the end user right? Maybe my question was really dumb, I'm quite new to web development.
g
http supports gzip out of the box
b
Yeah, the official DCE tool, it get the original 2MB bundle to 240KB
Im hosting it on nginx, which supports compression when sending to the clients and makes it 50KB compressed as measured on the delveoper console on the browser
246.73KB and 55.31 to be exact
g
Good result. How many LOC do you have in project, roughly?
b
257 on the js ui, and 1779 on the library
For comparison, the cli client has 349 LOC
and along with the jar libraries (gson, kotson, commons-cli) is 1.7MB
(No optimizations in the cli, proguard or similar, though)
k
Okay, thanks for explaining!
b
No prob, btw the browser is also required to support compression, but I guess most modern browsers do