Package Exports
- lws-static
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lws-static) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
lws-static
Lws middleware plugin to serve static files, wraps koa-static.
Adds the following options to lws.
--directory, -d path Root directory, defaults to the current directory.
--static.maxage number Cache max-age (in seconds) applied to all resources served.
--static.defer If true, serves after `await next`, allowing any downstream middleware to
respond first.
--static.index path Default file name, defaults to `index.html`.
--static.extensions ext One or more default filename extensions. For example, if you set
`--static.extensions html` and request `/page` then the server will look for
both `page` and `page.html` on disk, serving the latter.
© 2016-19 Lloyd Brookes <75pound@gmail.com>.