gulp-hashmap

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i gulp-hashmap

Weekly Downloads

0

Version

0.0.2

License

none

Last publish

Collaborators

  • litek