lite-server
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -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'` |
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
2988
44