blob: a78ac3dc6d57c43d86a4aa21dd744ec5a91e419a [file] [log] [blame]
/*
* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
kotlin {
js(LEGACY) {
binaries.executable()
browser {
distribution {
directory = directory.parentFile.resolve("dist")
}
commonWebpackConfig {
cssSupport.enabled = true
}
testTask {
useKarma {
useChromeHeadless()
}
}
}
}
}
// For kotlinx-html
repositories {
maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven")
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-html-js:${version("html")}")
implementation(devNpm("html-webpack-plugin", "5.3.1"))
}