You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
868 B

/*
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
project.kotlin {
js(LEGACY) {
binaries.executable()
browser {
distribution {
directory = new File(directory.parentFile, "dist")
}
webpackTask {
cssSupport.enabled = true
}
runTask {
cssSupport.enabled = true
}
testTask {
useKarma {
useChromeHeadless()
webpackConfig.cssSupport.enabled = true
}
}
}
}
sourceSets {
main.dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-html-js:$html_version"
implementation(npm("html-webpack-plugin", "3.2.0"))
}
}
}