gulp-hash-history
v0.1.4
Published
Gulp plugin which accepts a file, adds a hash, and adds it to a manifest
Downloads
3
Maintainers
Readme
gulp-hash-history
npm install gulp-hash-history
Basic usage
var hashHistory = require('gulp-hash-history');
gulp.src('./js/**/*.js')
.pipe(hashHistory.getProps()) // get properties
.pipe(gulp.dest(dest)),
.pipe(hashHistory.history({
destHistory: 'static/history.json', // read old file
destLatest: 'static/latest.json', // read old file
dest: dest, // if want to delete old versions
key: 'script.legacy' // js object prefix
}));