- Non-static webpack configuration
- Make Kotlin
resources
content available for Webpack
plugins {
kotlin("multiplatform") version "2.0.20"
id("io.github.turansky.kfc.webpack") version "8.25.0"
}
kotlin.js {
browser()
}
tasks {
patchBundlerConfig {
// language=JavaScript
patch(
"""
config.output.library.export = ['com', 'example', 'app']
""")
}
}
webpack.config.d
directory will be used as temp.
Add following .gitignore
instruction to exclude directory from Git:
webpack.config.d/
Apply webpack
plugin by default
- Modularity
- Kotlin/JS target -
es2015
plugins {
kotlin("multiplatform") version "2.0.20"
id("io.github.turansky.kfc.library") version "8.25.0"
}