How to configure kotlin-dce-js using the Kotlin Gr...
# javascript
a
How to configure kotlin-dce-js using the Kotlin Gradle DSL? I can only find examples for Groovy and cannot figure out the Kotlin variant: https://kotlinlang.org/docs/reference/javascript-dce.html#development-mode
g
runDceKotlinJs and runDceTestKotlinJs are tasks, so it shouldn’t be a problem to configure them with Kotlin DSL, if you have some problems, please share your existing code
a
thanks for the hint. was actually enough for me to figure it out: tasks.withType<KotlinJsDce> { dceOptions.devMode = true }
g
if you use plugins dsl and apply Kotlin JS plugin using it, you also should have static accessor like
tasks.runDceKotlinJs
but probably for this particular case configuring all tasks by type is better solution
a
okay, thanks a lot for helping