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.enabled = true 14 } 15 testTask { 16 useKarma { 17 useChromeHeadless() 18 } 19 } 20 } 21 } 22 } 23 24 // For kotlinx-html <lambda>null25repositories { 26 maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") 27 } 28 <lambda>null29dependencies { 30 implementation("org.jetbrains.kotlinx:kotlinx-html-js:${version("html")}") 31 implementation(devNpm("html-webpack-plugin", "5.3.1")) 32 } 33