Creates a hash manifest
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 6 commits ahead, 19 commits behind gseguin:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tasks
test
.gitignore
.jshintrc
.travis.yml
Gruntfile.js
LICENSE-MIT
README.md
package.json

README.md

grunt-hash-manifest-fix-md5

*This plugin is just forked from grunt-hash-manifest[https://github.com/gseguin/grunt-hash-manifest] to have correct MD5 value. Original grunt-hash-manifest has two issues with MD5 generation like shown below.

Creates manifest of files and associated hashes

Getting Started

This plugin requires Grunt ~0.4.0

npm install grunt-hash-manifest-fix-md5 --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-hash-manifest-fix-md5');

*This plugin was designed to work with Grunt 0.4.x.

Options

  • algo specifies which hashing algorithm to use. The default is md5. The choices are limited to what node's crypto module supports.
  • cwd is the directory in which to expand the globbing patterns as well as the root for dest

Usage Examples

"hash-manifest": {
  dist: {
    options: {
        algo: "md5",
        cwd: "dist"
    },
    src: [ "**/*" ],
    dest: "MANIFEST"
  }
}