WebServerOptions
constructor(port: Int, targetFile: File, browserLauncher: BrowserLauncher?, preferLivePreviewUrl: Boolean)
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