[Gradle, JS] Add dependency on dce task

^KT-32273 fixed
^KT-36451 fixed
^KT-37258 fixed
This commit is contained in:
Ilya Goncharov
2020-06-02 17:13:56 +03:00
parent d3260bca27
commit e27bd04ba2
@@ -225,8 +225,6 @@ open class KotlinBrowserJs @Inject constructor(target: KotlinJsTarget) :
contentBase = listOf(compilation.output.resourcesDir.canonicalPath)
)
outputs.upToDateWhen { false }
val actualDceTaskProvider = when (mode) {
KotlinJsBinaryMode.PRODUCTION -> dceTaskProvider
KotlinJsBinaryMode.DEVELOPMENT -> devDceTaskProvider
@@ -239,6 +237,8 @@ open class KotlinBrowserJs @Inject constructor(target: KotlinJsTarget) :
}
)
dependsOn(actualDceTaskProvider)
resolveFromModulesFirst = true
commonRunConfigurations.forEach { configure ->