#todayilearned

by @jm3 · aka John Manoogian3

Frequent, bite-size mini-milestone updates as I fast-forward merge* my front-end web development skills up to 2019 levels. Learn more

Live Server: a Simple CLI Server

Posted at — Jul 17, 2019

A simple alternative to BrowserSync for development: the npm package Live Server.

# to install locally to the project:
npm i -D live-server

# or, to install globally:
# npm install -g live-server

# then just point it at your web directory
live-server public

# to use a different port, 
# say if another service or project is already running on port 8080
live-server --port=8081 public