grunt-md5

generate md5 filename

grunt-md5

Grunt plugin for generating MD5 filenames.

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-md5

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-md5');

Then specify what files you want to generate an md5 filename in your config:

grunt.initConfig({
  md5: {
    compile: {
      files: {
        'dest/folder': 'src/file'
      },
      options: {
        callbackfunction (newPatholdPath) {
          // do something with the generated file 
        },
        keepExtension: true
      }
    }
  }
});
  • 0.0.1 First Release

Copyright (c) 2012 Jean-Sébastien Ney Licensed under the MIT license.