atom-live-server

Launch a http server with live reload capability.

jas-chen

1,469,798

364

2.3.0

MIT

GitHub

This package consumes the following services:

atom-live-server package

Launch a simple development http server with live reload capability.

Demo

This package is based on awesome Live Server project.

Usage

ctrl-alt-l launch live server on port 3000.

ctrl-alt-q stop live server.

ctrl-alt-3 launch live server on port 3000.

ctrl-alt-4 launch live server on port 4000.

ctrl-alt-5 launch live server on port 5000.

ctrl-alt-8 launch live server on port 8000.

ctrl-alt-9 launch live server on port 9000.

Options

If a file .atom-live-server.json exists in project root it will be loaded and used as options.

The keys of .atom-live-server.json should match Command line parameters in live-server.

Example: Launch specific browser

{
  "browser": "safari"
}

Example: Start server without browser opened

{
  "no-browser": true
}

Example: Serve this file for every 404 (useful for single-page applications)

{
  "entry-file": "index.html"
}

Example: Serve this directory as root path

{
  "root": "public"
}