gulp-fingerprint
gulp-fingerprint copied to clipboard
Be able to take in .pipe(rev.manifest())
Currently to use gulp-fingerprint with gulp-rev, you have to have them as two separate, synchronous tasks. The more gulp-y way of making this work would be a syntax like the following:
gulp.task("revision", function() {
return gulp.src("my/files/**/*")
.pipe(rev())
.pipe(gulp.dest("dist/")) // write revisioned files
.pipe(rev.manifest()) // build manifest
.pipe(fingerprint()) // use built manifest from stream
.pipe(gulp.dest("dist/")); // write manifest + fingerprinted files
});
rev-fingerprint works different way and can barely be changed to be inserted into rev pipe.
You can take a look at my plugin gulp-revplace that similar to gulp-fingerprint but works in more gulp way. Also it supports relative paths.
It's still in development phase but you can write me about any problem with plugin and I'll solve it as soon as possible.