1 /* 2 * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. 3 */ 4 <lambda>null5kotlin { 6 js(LEGACY) { 7 binaries.executable() 8 browser { 9 distribution { 10 directory = directory.parentFile.resolve("dist") 11 } 12 commonWebpackConfig { 13 cssSupport { 14 enabled.set(true) 15 } 16 } 17 testTask { 18 useKarma { 19 useChromeHeadless() 20 } 21 } 22 } 23 } 24 } 25 26 // For kotlinx-html <lambda>null27repositories { 28 maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") 29 } 30 <lambda>null31dependencies { 32 implementation("org.jetbrains.kotlinx:kotlinx-html-js:${version("html")}") 33 implementation(devNpm("html-webpack-plugin", "5.3.1")) 34 } 35