This grunt task iterates over its source files, calculating the MD5 hash of each, then creates a file containing the list of filenames and hashes. It can also create a copy of original filename with hash as part of the name and works with pre-existing hashmap files extending them so partial updates are possible.
This plugin requires Grunt
Deal with it.
npm install grunt-hashify --save-dev
The "hashify" task
In your project's Gruntfile, add a section named
hashify to the data object passed into