Okay, so I did the tutorial on “The State of Kotlin/JS” from the KotlinConf talk.
Everything works pretty good, however I want to deploy a preferably minified file.
I have my
resources and I have my
App.kt. When I do
./gradlew build I get the following:
build/js/packages/my-app with a package.json and a
webpack.config.js. However, where is my
index.html gone and how do I run it in production?
I would’ve expected a package somewhere with the
index.html included. I also not that the webpack config is set to ‘development’.
Any idea how to continue?
EDIT: I found
build/distributions. That was 13MB. When switching webpack production mode it became 12.5MB. I removed the source-maps and is was 2MB. I guess that makes sense, taking into account it includes React and Kotlin.
However, I suppose this is a setting somewhere as well?