gulp-filehash
Output list of files in current stream to JSON file with their checksum hashes .
Add it to your gulp file:
gulp
Outputs out/filehash.json
:
Installation
$ npm install gulp-filehash
Options
{ base: 'dist' }
Base : gulp
Outputs:
{ script: true }
Script: gulp
Outputs out/filehash.json
:
var fileHashes = "awesome.file" : "79550af37b9f41fc0fe382b8e5fc67c3e160db8b" "lame.file" : "6a7177d9a0fd176dbbf7165693319d1fc5acdf58"
{ script: 'hashes' }
Script with Variable Name: gulp
Outputs out/filehash.json
:
var hashes = "awesome.file" : "79550af37b9f41fc0fe382b8e5fc67c3e160db8b" "lame.file" : "6a7177d9a0fd176dbbf7165693319d1fc5acdf58"