KotlinWasmDevServer

interface KotlinWasmDevServer : Task

Represents a development server task for serving Wasm outputs locally.

This interface defines properties to configure and manage the behavior of the development server. It is usually implemented as part of the Kotlin Gradle plugin setup to facilitate easier local debugging of web applications.

Properties

Link copied to clipboard
@get:InputDirectory
@get:PathSensitive(value = PathSensitivity.RELATIVE)
abstract val contentDirectory: DirectoryProperty

The directory containing the content to be served by the development server.

Link copied to clipboard
@get:Input
abstract val host: Property<String>

The host address on which the development server will listen.

Link copied to clipboard
@get:Input
@get:Optional
abstract val port: Property<Int>

The port number on which the development server will listen.