Repository navigation
localghost v4.3.0
localghost 4.3.0 serves plain HTML folders, with pages that update as you edit.
- A folder with an
index.htmlis detected as the newhtmltype when nothing else is:localghost rungives it a.localhostURL with no server to set up. /inner/servesinner/index.html, and/innerredirects there.- Open pages update when a file they use changes: edited stylesheets swap in place, keeping scroll, form input and script state; other changes reload the page.
- Dotfiles and dot-directories such as
.envand.git/are never served, and the server stays on loopback whenever localghost can relay it. - In a folder inside another project, pass
--type html, or--project-root .to stop the search at the current directory.
Upgrade:
uvx --refresh localghost