The application is written in angular js. I want to be able to update the ver={%tag%} to ver=v1 where v1 is the git tag.
for example in index file like this.
<script src="js/controllers/AController.js?ver={%tag%}"></script>
<script src="js/controllers/BController.js"?ver={%tag%}></script>
I want to achieve this functionality when checking out tag in production. So that I don't have to manually update the version number for each file to stay in sync with git tag. If there is a way to do this with git hook. I'll accept that also. But please provide example. This will allow users to get the latest version of the files instead of cached version and will prevent users from manually clearing the cache for changes. Just to let you know I am using bitbucket.