Skip to content

This is a little development server with live reload capability. Use it for hacking your HTML/JavaScript/CSS files, but not for deploying the final site

Notifications You must be signed in to change notification settings

vinhio/live-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

live-server

This is a little development server. Use it for hacking your HTML/JavaScript/CSS files, but not for deploying the final site.

There are two reasons for using this:

  • AJAX requests don't work with the file:// protocol due to security restrictions, i.e. you need a server if your site fetches content through JavaScript.
  • Having the page reload automatically after changes to files can accelerate development.

Run Mac or Linux

./live-server -addr=0.0.0.0:8080 -dir=./public

Run Windows

.\live-server-arm64.exe -addr=:7007 -dir="C:\live-server\public"

About

This is a little development server with live reload capability. Use it for hacking your HTML/JavaScript/CSS files, but not for deploying the final site

Resources

Stars

Watchers

Forks

Packages

No packages published