sindresorhus / gulp-rev

Static asset revisioning by appending content hash to filenames: `unicorn.css` → `unicorn-d41d8cd98f.css`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hash placed in wrong location on file name when multiple periods in name

phazei opened this issue · comments

commented

I have files named:
site.subsite.js

when I use rev, instead of:
site.subsite-xxx.js
I get:
site-xxx.subsite.js

Is this a bug? Is there a work around?

commented

hmm, I think this can be worked around with #169

For this particular case though, I do feel like it should do that by default. I presume the original intention was to put the hash directly before the extension. So based on that, this could be considered a bug.

Yeah, I think putting the hash before the last extension would be the best default behavior.

commented

It did it right in v4. I'd just upgraded to v8 today.