configAsKobwebApplication

fun KotlinMultiplatformExtension.configAsKobwebApplication(moduleName: String? = null, includeServer: Boolean = false, jsTargetName: String = "js", jvmTargetName: String = "jvm")(source)

Convenience method for configuring a kotlin block with initialization boilerplate used by Kobweb applications.

Parameters

moduleName

The development name you'd like to use to represent this project. It won't be visible to the end user, but, for example, the final JS output file will use this name. If not specified, a name will be created using suggestKobwebProjectName. If you change this later, you should also check your .kobweb/conf.yaml file and update relevant entries.

includeServer

If true, this configuration will also initialize a JVM target which will be used for producing a jar that is used by a Kobweb server.

jsTargetName

The name to use for this project's javascript target. For example, this affects the generated Gradle tasks generated for building this project.

jvmTargetName

The name to use for this project's JVM target. For example, this affects the generated server jar name. This value will be ignored if includeServer is set to false.