Crate live_server

source ·
Expand description

Launch a local network server with live reload feature for static pages.

Create live server

use live_server::listen;
listen("127.0.0.1", 8080, "./").await.unwrap();

Enable logs (Optional)

env_logger::init();

Functions

  • Watch the directory and create a static server.