We're using grunt-hashres to hash our image resources, in addition to JS and CSS. Since the same image can be used multiple times in a CSS file, we uncovered a bug where hashres only replaces the first occurrence. This pull request fixes it to replace all.
Fix to replace all occurrences when replacing, not just the first
Thanks for your contribution.
Please allow me a few days to deploy it to npm.