gulp-hashmap

v0.0.2
Create a JSON file of file hashes
gulpplugin

gulp-hashmap

Create a JSON map of file hashes, passing all files through.

Usage

var hash = require("gulp-hashmap"),
    uglify = require("gulp-uglify");

// Uglify scripts, create a hashmap and write all to the dist directory
grunt.task("build", function() {
  grunt.src("scripts/*.js")
    .pipe(uglify())
    .pipe(hash("hashmap.json"))
    .pipe(grunt.dest("dist/"));
});

License

MIT

npm i gulp-hashmap

Metadata

Downloads

Maintainers