Dev

@Serializable
class Dev(val contentRoot: String, val script: String, val api: String? = null)(source)

The dev server only serves a single html file that represents the whole project.

Parameters

contentRoot

The path to serve content from, which includes the Kobweb index.html file.

script

The path to the final JavaScript file generated from the user's Kotlin code.

api

A path to the API jar that may have been generated by the Kobweb project. If present, it can be used to extend the behavior of the Kobweb server.

Constructors

Link copied to clipboard
constructor(contentRoot: String, script: String, api: String? = null)

Properties

Link copied to clipboard
val api: String? = null
Link copied to clipboard
Link copied to clipboard