1.0.1 • Published 11 years ago
apply-static-cache-manifest v1.0.1
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.htmlThe above will ensure that the built index.html references the cached version of foo.js.