gulp-hash-src icon indicating copy to clipboard operation
gulp-hash-src copied to clipboard

src with cache are not update after files changed

Open vikdet opened this issue 10 years ago • 2 comments

I have one script <script src="Scripts/dest/engineJs.js"></script></code> which is changed after plugin to <script src="Scripts/dest/engineJs.js?cbh=e9af0a7edcdb8a013fea4af9c045aac2"></script> But then when i change engineJs.js file and rerun plugin, script's src isn't changed. I think src should be updated to new hash.

vikdet avatar Nov 03 '15 15:11 vikdet

Sorry for the delay. Do you mean that you are running the script on a file that already has the ?cbh=... in it?

I suppose that makes sense, but it would be a bit trickier to parse to make find the correct file and not mess up the query string as well. But I suppose that could be done.

nmrugg avatar Nov 26 '15 13:11 nmrugg

Yes, I am running he script on a file that already has the ?cbh=... in it.

I have found that it is already not necessary, because it makes files always changed and tracked by git. This is not convinient approach in dev environment.

vikdet avatar Nov 26 '15 13:11 vikdet