Refactor aligning for css support
#KT-39770 fixed
This commit is contained in:
+8
-2
@@ -209,8 +209,14 @@ abstract class GradleKotlinJSFrameworkSupportProvider(
|
|||||||
kotlin {
|
kotlin {
|
||||||
js {
|
js {
|
||||||
$jsSubTargetName {
|
$jsSubTargetName {
|
||||||
${additionalSubTargetSettings() ?: ""}
|
""".trimIndent() +
|
||||||
}
|
(
|
||||||
|
additionalSubTargetSettings()
|
||||||
|
?.lines()
|
||||||
|
?.joinToString("\n", "\n", "\n") { " $it" } ?: ""
|
||||||
|
) +
|
||||||
|
"""
|
||||||
|
}
|
||||||
binaries.executable()
|
binaries.executable()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+15
-12
@@ -66,16 +66,19 @@ internal fun addBrowserSupport(module: Module) {
|
|||||||
|
|
||||||
internal fun browserConfiguration(): String {
|
internal fun browserConfiguration(): String {
|
||||||
return """
|
return """
|
||||||
|val cssSupport = { task: KotlinWebpack
|
webpackTask {
|
||||||
| task.cssSupport.enabled = true
|
cssSupport.enabled = true
|
||||||
|}
|
}
|
||||||
|
|
|
||||||
|webpackTask {
|
runTask {
|
||||||
| cssSupport(it)
|
cssSupport.enabled = true
|
||||||
|}
|
}
|
||||||
|
|
|
||||||
|runTask {
|
testTask {
|
||||||
| cssSupport(it)
|
useKarma {
|
||||||
|}
|
useChromeHeadless()
|
||||||
""".trimMargin()
|
webpackConfig.cssSupport.enabled = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
""".trimIndent()
|
||||||
}
|
}
|
||||||
+10
-2
@@ -184,8 +184,16 @@ abstract class AbstractKotlinDslGradleKotlinJSFrameworkSupportProvider(
|
|||||||
kotlin {
|
kotlin {
|
||||||
js {
|
js {
|
||||||
$jsSubTargetName {
|
$jsSubTargetName {
|
||||||
${additionalSubTargetSettings() ?: ""}
|
""".trimIndent() +
|
||||||
}
|
(
|
||||||
|
additionalSubTargetSettings()
|
||||||
|
?.lines()
|
||||||
|
?.joinToString("\n", "\n", "\n") {
|
||||||
|
" $it"
|
||||||
|
} ?: ""
|
||||||
|
) +
|
||||||
|
"""
|
||||||
|
}
|
||||||
binaries.executable()
|
binaries.executable()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user