Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
lite-server
Advanced tools
Readme
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.
./index.html
Serve from the current folder and open (browse to) the default file (usually index.html) in that folder.
lite-server
./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
lite-server --verbose
Sets the port to serve. Defaults to 3000.
lite-server --port 3000
Which folder to holds the index.html
. Defaults to ./
lite-server --open src
Array of file patterns to watch. Defaults to all html, css and js.
lite-server --files '/**/*.html' '/**/*.css' '/**/*.js'
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
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.
We found that lite-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.