gulp-hash-history

0.1.4 • Public • Published

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
    }));
 

Package Sidebar

Install

npm i gulp-hash-history

Weekly Downloads

1

Version

0.1.4

License

MIT

Last publish

Collaborators

  • c10rkw0rk