Hash placed in wrong location on file name when multiple periods in name
phazei opened this issue · comments
Adam 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?
Adam 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.
Sindre Sorhus commented
Yeah, I think putting the hash before the last extension would be the best default behavior.
Adam commented
It did it right in v4. I'd just upgraded to v8 today.