apply-static-cache-manifest

Basic find and replace of file names to their cached versions.

Usage no npm install needed!

<script type="module">
  import applyStaticCacheManifest from 'https://cdn.skypack.dev/apply-static-cache-manifest';
</script>

README

apply-static-cache-manifest

Extremely basic find and replace to update file references with their cached equivalents.

Intended for use with the output of copy-with-content-hash.

installation

npm install apply-static-cache-manifest

usage

copy-with-content-hash path/to/foo.js -o builddir > cache-manifest.json
apply-static-cache-manifest -m cache-manifest.json -o builddir index.html

The above will ensure that the built index.html references the cached version of foo.js.

License: MIT