preassembled-worker-boxes

Allows auto-detecting and baking in one's resource files for caching into a service worker

Usage no npm install needed!

<script type="module">
  import preassembledWorkerBoxes from 'https://cdn.skypack.dev/preassembled-worker-boxes';
</script>

README

preassembled-worker-boxes

This project is in its early stages and may not work robustly or at all.

This project is meant to help assist you auto-detect your resource files (those which an entry file imports or relevant fetch or such statements found within those files)

We currently have very limited support for syntactic structures where the resource files can be found. See find-es-resources.

We use workbox-build to build a service-worker which caches the files that your application fetches, etc.

Install

npm i preassembled-worker-boxes

CLI Usage

badges/cli.svg

See also

Changelog

The changelog can be found on CHANGES.md.

Authors and license

Brett Zamir and contributors.

MIT License, see the included LICENSE-MIT.tx file.

To-dos

  1. Add binary tests (and get to full coverage).
  2. Use find-resources to bundle files found during the parsing of HTML and CSS files