Im trying to put together a kotlin multiplatform p...
# javascript
c
Im trying to put together a kotlin multiplatform project, and the javascript compiler isn't making a out/ directory or putting anything in said directory which is a bit of a problem because those are the files I'm supposed to include in the html Heres my build.gradle https://pastie.io/ujwjtw.kotlin
s
Is this for a webpack dev server or are you trying to deploy it?
c
this is for a website. I just want to include my code in my index.html file, regardless of how its done. Do I have to use webpack?
s
@Carson Graham Yes, you can use webpack for it. Starting from 1.3.40, Gradle Kotlin JS plugin can do it for you without additional configuration. Just add
browser()
inside your
js
target and call
./gradlew browserWebpack
. The resulting bundle will be saved to
build/distributions
folder (if your are using 1.3.50)