Hey guys, I'm trying to configure kotlin-multiplat...
# javascript
a
Hey guys, I'm trying to configure kotlin-multiplatform so that it uses similar configuration as CRKA. So far I've found out that kotlin-gradle-plugin will extend webpack configuration with whatever it finds in root/webpack.config.d folder. The same story with Karma, if you create karma.config.d folder gradle pluging will enhance existing preset configuration with whatever it finds there. Is there any way to enhance package.jason? I'd like to add 'browserslist' there.
t
What about separate browserlist (separate file)?
a
will kotlin-multiplatform gradle plugin search this file in root folder or in build/js/...?
t
I suggest to use
package.json
parent dir
a
this is the problem, cause in kotlin-maltiplutform
package.jason
parent is root/build/js. Since it lives inside build dir it gets deleted with every
./gradlew clean build
I've written small gradle script that hooks into kotlin-multiplatform package.json generation task and injects
browserslist
in there