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

cannot figure out how to rewrite references to images #143

Open
hopeworkscamden opened this issue Apr 22, 2016 · 0 comments · May be fixed by hixio-mh/gulp-rev-all#4 or hixio-mh/gulp-rev-all#12
Open

Comments

@hopeworkscamden
Copy link

My issue is that after a gulp build task all my images are given new filenames due to a minify task. gulp-rev is also run. However, after that i am unable to replace the filenames with new names that are cited in the rev-manifest file. below is the task that i am try to use to replace the filenames for anything in the dist client folder:

gulp.task("replace", function(){ var manifest = gulp.src(${paths.dist}/${clientPath}/assets/rev-manifest.json`);
var revAll = new RevAll();

return gulp.src(${paths.dist}/${clientPath})
.pipe(revAll.revision())
.pipe(gulp.dest(${paths.dist}/${clientPath}));
});`

here is the dist folder:
image

I am not sure how to incorporate revall and what i'm doing wrong. I would really appreciate some direction

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