File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -100,12 +100,13 @@ compose.experimental {
100
100
101
101
// include JS artifacts in any JAR we generate
102
102
tasks.named<Jar >(" jvmJar" ).configure {
103
+ val taskPrefix = if (project.properties.get(" app.run.wasm" ) == " true" ) " wasmJs" else " js"
103
104
val taskName = if (project.hasProperty(" isProduction" )
104
105
|| project.gradle.startParameter.taskNames.contains(" installDist" )
105
106
) {
106
- " wasmJsBrowserProductionWebpack "
107
+ " ${taskPrefix} BrowserProductionWebpack "
107
108
} else {
108
- " wasmJsBrowserDevelopmentWebpack "
109
+ " ${taskPrefix} BrowserDevelopmentWebpack "
109
110
}
110
111
val webpackTask = tasks.named<KotlinWebpack >(taskName)
111
112
from(webpackTask.map { it.outputDirectory }) // bring output file along into the JAR
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ kotlin.code.style=official
2
2
kotlin.js.compiler =ir
3
3
org.jetbrains.compose.experimental.wasm.enabled =true
4
4
kotlin.daemon.jvmargs =-Xmx4G
5
+ app.run.wasm =false
You can’t perform that action at this time.
0 commit comments