Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kflorence opened this issue Jul 29, 2014 · 1 comment
Open

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

kflorence opened this issue Jul 29, 2014 · 1 comment

Comments

@kflorence
Copy link

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
});
@tenphi
Copy link
Contributor

tenphi commented Aug 11, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants