Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "lws-spa", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Middleware adding support for Single Page Applications to lws", | ||
@@ -11,2 +11,3 @@ "repository": "https://github.com/lwsjs/spa.git", | ||
"lws", | ||
"lws-middleware", | ||
"spa" | ||
@@ -25,5 +26,5 @@ ], | ||
"devDependencies": { | ||
"coveralls": "^3.0.3", | ||
"lws": "^2.0.0-7", | ||
"lws-static": "^1.0.0", | ||
"coveralls": "^3.0.4", | ||
"lws": "^2.0.0", | ||
"lws-static": "^1.1.1", | ||
"node-fetch": "^2.6.0", | ||
@@ -30,0 +31,0 @@ "nyc": "^14.1.1", |
@@ -12,4 +12,16 @@ [![view on npm](https://img.shields.io/npm/v/lws-spa.svg)](https://www.npmjs.org/package/lws-spa) | ||
Adds the following options to lws. | ||
``` | ||
--spa, -s file Path to a Single Page App, e.g. app.html. | ||
--spa.asset-test RegExp A regular expression to identify an asset file. Defaults to ".", meaning the | ||
server will only read from disk if the requested path contains a ".". This | ||
option is more efficient than `spa.asset-test-fs`. | ||
--spa.asset-test-fs Use the filesystem to identify an asset file. If the file exists on disk, | ||
serve it else return the SPA. If specified, `spa.asset-test` will be ignored. | ||
This option is less efficient but more reliable than `spa.asset-test`. | ||
``` | ||
* * * | ||
© 2016-19 Lloyd Brookes <75pound@gmail.com>. | ||
© 2016-19 Lloyd Brookes \<75pound@gmail.com\>. |
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
5738
27