Is this `kotlin-dce-js` plugin (<https://kotlinlan...
# javascript
r
Is this
kotlin-dce-js
plugin (https://kotlinlang.org/docs/reference/javascript-dce.html) still the thing to use, or is this frontend plugin replacing it? https://github.com/Kotlin/kotlin-frontend-plugin
a
I'm not sure that they are mutually exclusive? I'm using DCE in a multiplatform library though, so I'm not using
kotlin-frontend-plugin
and may not be the best person to talk haha
r
You can use dce with
kotlin-frontend-plugin
. You can use
k-f-p
to apply uglifyjs webpack plugin on the JS files after dce (it gives the best results).
https://github.com/rjaros/kvision-examples/blob/master/helloworld/build.gradle here is a sample application built with dce and k-f-p.
👍 1