lite-server
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -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` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3289
44
53
Updatedbrowser-sync@^2.1.1
Updatedyargs@^3.32.0