47 lines
1.1 KiB
Kotlin
47 lines
1.1 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
alias(libs.plugins.compose.multiplatform)
|
|
alias(libs.plugins.compose.compiler)
|
|
}
|
|
|
|
kotlin {
|
|
js(IR) {
|
|
browser {
|
|
commonWebpackConfig {
|
|
devServer = org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig.DevServer(
|
|
open = true,
|
|
port = 8081
|
|
)
|
|
}
|
|
webpackTask {
|
|
cssSupport {
|
|
enabled.set(true)
|
|
}
|
|
}
|
|
runTask {
|
|
cssSupport {
|
|
enabled.set(true)
|
|
}
|
|
}
|
|
testTask {
|
|
useKarma {
|
|
useChromeHeadless()
|
|
webpackConfig.cssSupport {
|
|
enabled.set(true)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
binaries.executable()
|
|
}
|
|
|
|
sourceSets {
|
|
val jsMain by getting {
|
|
dependencies {
|
|
implementation(project(":client:common-ui"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|