WebServerPreviewStrategy

constructor(port: Int, browser: BrowserLauncher?, preferLivePreviewUrl: Boolean)

Parameters

port

port on which the preview server is started and contacted for reload triggers

browser

optional browser launcher used to open the served URL the first time the server starts

preferLivePreviewUrl

whether to open the live-preview endpoint URL rather than the direct file URL, typically enabled when both preview and watch modes are active