Expand description
Development server for webui-press.
Composes webui_dev_server primitives:
LiveReloadfor SSE-based browser auto-reload.spawn_watcherfor debounced filesystem notifications.spawn_rebuild_workerfor the rebuild loop (tick coalescing, success/error reporting, livereload broadcast).serve_static_fileforbasePath-aware static file routing with HTML livereload injection.
Press-specific responsibilities that stay in this file:
- re-reading and parsing
config.jsonon every rebuild so live edits take effect, - calling
build_docsand reusing the syntect highlighter across rebuilds viaBuildCache, - serving the flat
out_dir(the dev-server crate handles the actual HTTP machinery — this module just wires it up).
Structs§
- Serve
Config - Inputs needed to start the dev server.
Functions§
- run_
serve - Run the dev server until interrupted.