0.2.1 • Published 7 years ago

gulp-file-hash v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

gulp-file-hash

gulp-file-hash is a gulp plugin to use hash value to filter files.

NPM

Build Status NPM version Downloads Support us

通过在根目录保存一个记录文件hash的json文件,在每次上传之前对文件的hash进行比较,过滤出hash值发生改变的文件,使上传发布的文件数达到最小。

Install

With npm do:

npm install gulp-file-hash --save-dev

Example

var fileHash = require('gulp-file-hash');
var rename = require('gulp-rename');

gulp.src('dist/*')
    .pipe(fileHash('upload.json'))
    .pipe(rename({suffix: "." + (+new Date())}))
    .pipe(/* upload command */)

API

fileFilter('filename.json') 根目录下记录文件hash的json文件,不存在则自动创建。

License

MIT License

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago