Username404-Website/build.gradle.kts

49 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-06-20 13:27:01 +02:00
plugins {
id("org.jetbrains.kotlin.js") version "1.5.20-RC"
}
group = "fr.username404"
version = "0.1"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-js"))
implementation("org.jetbrains.kotlinx:kotlinx-html:0.7.3")
}
kotlin {
js(IR) {
moduleName = "Username404_Website"
2021-06-20 15:20:32 +02:00
compilations.all {
with(kotlinOptions) {
freeCompilerArgs = freeCompilerArgs + listOf(
"-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlin.js.ExperimentalJsExport",
"-progressive"
)
}
}
2021-06-20 13:27:01 +02:00
browser {
webpackTask {
output.libraryTarget = "global"
cssSupport.enabled = true
}
runTask {
cssSupport.enabled = true
}
testTask {
useKarma {
useFirefoxNightlyHeadless()
webpackConfig.cssSupport.enabled = true
}
}
}
binaries.executable()
}
}