/* | |
* 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() | |
} | |
} | |
} | |
} | |
} | |
dependencies { | |
implementation("org.jetbrains.kotlinx:kotlinx-html-js:${version("html")}") | |
implementation(devNpm("html-webpack-plugin", "3.2.0")) | |
} |