Browse Source

[web] [build] stricter guards for printTestBundleSize

pull/1083/head
Shagen Ogandzhanian 3 years ago
parent
commit
fdc9c5df5e
  1. 3
      web/build.gradle.kts

3
web/build.gradle.kts

@ -35,6 +35,7 @@ subprojects {
} }
} }
pluginManager.withPlugin("kotlin-multiplatform") {
val printTestBundleSize by tasks.registering { val printTestBundleSize by tasks.registering {
doLast { doLast {
val bundlePath = buildDir.resolve( val bundlePath = buildDir.resolve(
@ -50,6 +51,8 @@ subprojects {
afterEvaluate { afterEvaluate {
tasks.named("jsTest") { finalizedBy(printTestBundleSize) } tasks.named("jsTest") { finalizedBy(printTestBundleSize) }
} }
}
if (isSampleProject()) { if (isSampleProject()) {
val printBundleSize by tasks.registering { val printBundleSize by tasks.registering {

Loading…
Cancel
Save