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.3.2 to 1.3.3

3

lib/lite-server.js

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

var openPath = getOpenPath();
var indexFile = argv.indexFile || 'index.html'
var options =

@@ -24,3 +25,3 @@ {

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

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

{
"name": "lite-server",
"version": "1.3.2",
"version": "1.3.3",
"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.",

@@ -19,8 +19,8 @@ "main": "./lib/lite-server",

"dependencies": {
"browser-sync": "^2.9.11",
"browser-sync": "^2.1.1",
"connect-history-api-fallback": "^1.1.0",
"connect-logger": "0.0.1",
"yargs": "^3.27.0"
"yargs": "^3.32.0"
},
"devDependencies": {}
}

@@ -29,3 +29,3 @@ # lite-server

### open
Which folder to holds the `index.html`. Defaults to `./`
Which folder to holds the index file (`index.html` by default). Defaults to `./`

@@ -50,2 +50,5 @@ `lite-server --open src`

### indexFile
Which file will be opened after the server starts. Defaults to `index.html`
`lite-server --indexFile main.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