Socket
Socket
Sign inDemoInstall

lite-server

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lite-server - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

2

lib/lite-server.js

@@ -24,3 +24,3 @@ var historyFallback = require('connect-history-api-fallback');

baseDir: argv.baseDir || './',
fallback: argv.fallback || '/' + openPath + '/index.html'
fallback: '/' + openPath + '/index.html'
};

@@ -27,0 +27,0 @@

{
"name": "lite-server",
"version": "1.2.0",
"version": "1.3.0",
"description": "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.",

@@ -5,0 +5,0 @@ "main": "./lib/lite-server",

@@ -44,7 +44,1 @@ # lite-server

`--baseDir './'`
### fallback
File to serve when a route is not found. Useful for SPAs. Defaults to `source` folder + `/index.html`.
`--fallback '/src/index.html'`
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc