gulp-fingerprint icon indicating copy to clipboard operation
gulp-fingerprint copied to clipboard

Be able to take in .pipe(rev.manifest())

Open kflorence opened this issue 11 years ago • 1 comments

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

kflorence avatar Jul 29 '14 01:07 kflorence

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.

tenphi avatar Aug 11 '14 17:08 tenphi