I am now trying to generate manifest.json file with gulp-rev. What I need is something like this:
{
"img/image.jpg": "folder/img/image-34c9d558b2.jpg";
}
How do I put that "folder" in path there? I was trying to use gulp-rev-collector but it was not very useful. Could someone give me an example please?
Thanks
What worked for me was using
gulp-renameand then doing something like:However, what ultimately worked for me was using
gulp-revin combination withgulp-rev-collector, the latter which replaces the links as per the mappings found in the manifest files.So something like:
And also adding a new
revtask forgulp-rev-collector