Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

lite-server

Package Overview
Dependencies
644
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lite-server

Lightweight development node server for serving a web app, providing a fallback for browser history API, loading in the browser, and injecting scripts on the fly.


Version published
Maintainers
1
Install size
36.1 MB
Created

Readme

Source

lite-server

Lightweight development only node server that serves a web app, opens it in the browser, refreshes when html or javascript change, injects CSS changes using sockets, and has a fallback page when a route is not found.

Get Started

Serve the current folder and ./index.html

Serve from the current folder and open (browse to) the default file (usually index.html) in that folder.

lite-server

Serve the current folder and ./src/index.html

Serve from the current folder and open (browse to) the default file (usually index.html) in the src folder.

lite-server --open src

Serve and log all options

lite-server --verbose

Options

port

Sets the port to serve. Defaults to 3000.

lite-server --port 3000

open

Which folder to holds the index.html. Defaults to ./

lite-server --open src

files

Array of file patterns to watch. Defaults to all html, css and js.

lite-server --files '/**/*.html' '/**/*.css' '/**/*.js'

baseDir

Folder (or collection of folders) to serve. Defaults to ./. Use this when you want to specify which folders you want to serve assets from.

lite-server --baseDir './'

or to serve from multiple folders

`lite-server --baseDir ./src --baseDir ./``

FAQs

Last updated on 18 Nov 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc