4.1.0 • Published 3 years ago

lws-spa v4.1.0

Weekly downloads
54,065
License
MIT
Repository
github
Last release
3 years ago

view on npm npm module downloads Gihub repo dependents Gihub package dependents Node.js CI Coverage Status 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-21 Lloyd Brookes \75pound@gmail.com\.

Tested by test-runner.

4.1.0

3 years ago

4.0.0

3 years ago

3.0.0

4 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.3.0

6 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago