grunt-hashres icon indicating copy to clipboard operation
grunt-hashres copied to clipboard

Fix file reference with url parameters dropping ?=

Open dherbst opened this issue 9 years ago • 0 comments

If you have in your html file something like

<script src="myfile.js?v=4.2.0">

hashres ends up chopping off the ?= from the replaced file

<script src="myfile.82828ef.js=4.2.0">

which is not a valid url. The problem seems to be in the capture after the url, which is not used in the replace.

dherbst avatar May 17 '15 02:05 dherbst