Audit Files
Verify file integrity
Install
yarn add makestatic-audit-files
API
AuditFiles
Verifies the checksums of output files on disc against the in-memory manifest. Useful if you need to verify the integrity of file content before performing a deployment.
For each key in the manifest files
map read the file from disc and verify
it's checksum against the manifest data.
Use this plugin when you need to verify files on disc before performing a deployment.
If no provider
option has been specified this plugin does not execute.
See Also
.after
AuditFilesprototype
Audits the files on disc against the in-memory manifest data.
Returns a promise that resolves when all files have been audited
context
Object the processing context.
Throws
Error
if the manifest has not been set on the context.Error
if the file read operation fails.Error
on checksum mismatch.
License
MIT
Created by mkdoc on March 12, 2017