tarek
10/23/2019, 12:09 AMbuild/distributions
after running ./gradlew jsBrowserWebpack
to see the result
Additionally, you can add a index.html
with a <script src="<my-module>.js"></script>
to your jsMain/resources
folder and it will be copied to your build folder and used when you run ./gradlew jsBrowserRun
sdeleuze
10/23/2019, 12:17 AM./gradlew browserWebpack
sdeleuze
10/23/2019, 12:19 AMsdeleuze
10/23/2019, 12:39 AMmoduleKind
?tarek
10/23/2019, 8:18 AMbuild.gradle
to Kotlin, that way you’ll have autocompletion and can explore the plugin code more easilysdeleuze
10/23/2019, 8:18 AMsdeleuze
10/23/2019, 8:19 AMtarek
10/23/2019, 8:24 AMconfigure<KotlinMultiplatformExtension> {
js {
compilations.all {
compileKotlinTask.kotlinOptions {
moduleKind = "commonjs"
sourceMap = true
sourceMapEmbedSources = "always"
}
}
browser {
webpackTask {
}
}
}
tarek
10/23/2019, 8:24 AMuseCommonJs()
helper if you just want to use CommonJssdeleuze
10/23/2019, 8:24 AMsdeleuze
10/23/2019, 8:24 AM