Launch a simple development http server with live reload capability.
JavaScript CSS
Clone or download
Latest commit e60a613 Aug 10, 2018
Permalink
Failed to load latest commit information.
.github Update ISSUE_TEMPLATE Feb 13, 2017
doc v1.0.0 Oct 17, 2015
keymaps Rewrite Feb 11, 2017
lib Merge pull request #178 from richiksc/master Jun 7, 2018
menus Rewrite Feb 11, 2017
spec Rewrite Feb 11, 2017
styles Rewrite Feb 11, 2017
.gitignore fix issue #1 Oct 21, 2015
CHANGELOG.md Rewrite Feb 11, 2017
LICENSE.md Update license Feb 11, 2017
README.md Documentation update Aug 8, 2018
package-lock.json Strip ANSI color codes when checking if process has started and updat… Jun 1, 2018
package.json Prepare 2.3.0 release Jun 6, 2018

README.md

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

Command Keybinding Description
atom-live-server:start-server ctrl-alt-l Launch live server on default port, by default 3000.
atom-live-server:stop-server ctrl-alt-q Stops currently running instance of live server.
atom-live-server:start-3000 ctrl-alt-3 Launch live server on port 3000.
atom-live-server:start-4000 ctrl-alt-4 Launch live server on port 4000.
atom-live-server:start-5000 ctrl-alt-5 Launch live server on port 5000.
atom-live-server:start-8000 ctrl-alt-8 Launch live server on port 8000.
atom-live-server:start-9000 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"
}