gulp-fingerprint
                                
                                 gulp-fingerprint copied to clipboard
                                
                                    gulp-fingerprint copied to clipboard
                            
                            
                            
                        Smarter regex or options needed for this case
For application-specific reasons I only store the file name and its subfolder in the revision file like this
{
  "logo.png": "logo-afc86ade.png",
  "wait/wait1.gif": "wait/wait1-e244a2fd-e244a2fd.gif",
  ...
}
for them images, in the CSS I have these lines:
background: url("/img/logo.png")
background-image: url("/img/wait/wait1.gif")
None of your gulp options and default regex won't support this.
I think we need another option to prepend a subfolder to the regex. In my case something like this:
        .pipe(fingerprint('/img/rev-manifest.json'), {
            prependToRegex: '/img/'
        }))
so that
background-image: url("/img/wait/wait1.gif")
becomes
background-image: url("/img/wait/wait1-e244a2fd-e244a2fd.gif")
Agree @vincentmac?
By the way, if I use these two options it works like I wanted it to be:
  base:   'img/',
  prefix: '/img/'