1.0.10 • Published 8 years ago
makestatic-audit-files v1.0.10
Audit Files
Verify file integrity
Install
yarn add makestatic-audit-filesAPI
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
AuditFiles.prototype.after(context)Audits the files on disc against the in-memory manifest data.
Returns a promise that resolves when all files have been audited
contextObject the processing context.
Throws
Errorif the manifest has not been set on the context.Errorif the file read operation fails.Erroron checksum mismatch.
License
MIT
Created by mkdoc on March 12, 2017