Hi,
I’m using the kotlin-frontend-plugin, and trying to minimize the final javascript. I got a smaller bundle when I set mode = "production"
…
webpackBundle {
...
mode = "production"
}
But I’m not sure if there is more minimization possible. The frontend plugin page mentions “additional scripts” like minify.js
but I don’t know what that script is or where to get it. The docs for webpack say that it will minify your code already in production mode.
My bundle JS file is now 638KB. I’m using kotlinx serialization, coroutines, html, and of course the standard lib. Some code appears to be minimized, and some - I’m not sure.
Looks minified: ...function ee(){ne=this,this.ref_0=new wr}...
Not so much: ...prototype.decodeSerializableValue_w63s0f$=...
Are people doing something else to get more minimization?