Skip to content

localghost v4.3.0

Choose a tag to compare

@SmileyChris SmileyChris released this 12 Oct 22:59
· 20 commits to main since this release

localghost 4.3.0 serves plain HTML folders, with pages that update as you edit.

  • A folder with an index.html is detected as the new html type when nothing else is: localghost run gives it a .localhost URL with no server to set up.
  • /inner/ serves inner/index.html, and /inner redirects 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 .env and .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