WebServerOptions

data class WebServerOptions(val port: Int, val targetFile: File, val browserLauncher: BrowserLauncher?, val preferLivePreviewUrl: Boolean)

Options for the local web server.

Parameters

port

port to start the server on

targetFile

file to serve

browserLauncher

strategy to open the served file in the browser. If null, the file will not be opened

preferLivePreviewUrl

if a browser launcher is provided, prefer to open the URL for live preview instead of the static file URL

Constructors

Link copied to clipboard
constructor(port: Int, targetFile: File, browserLauncher: BrowserLauncher?, preferLivePreviewUrl: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
val port: Int
Link copied to clipboard
Link copied to clipboard