Skip to content
/ spa Public

lws middleware plugin adding support for Single Page Applications

License

Notifications You must be signed in to change notification settings

lwsjs/spa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

view on npm npm module downloads Gihub repo dependents Gihub package dependents Node.js CI js-standard-style

lws-spa

lws middleware plugin adding support for Single Page Applications. For usage instructions, see here.

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-24 Lloyd Brookes <[email protected]>.

Tested by test-runner.

About

lws middleware plugin adding support for Single Page Applications

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published