I'm using Grunt in my project, I can concatenate them and minify them as desired. However I need to change the links on my page to the minified files. For example:
From:
<head>
<script src="js/arquivo1.js"></script>
<script src="js/arquivo2.js"></script>
<script src="js/arquivo3.js"></script>
</head>
To:
<head>
<script src="js/arquivo.min.js"></script>
</head>
I would like to know if there is a plugin for this (should have) and how to configure it.
EDIT
Only one page (index.html) contains the links. The other pages are linked using AngularJS. I'm also using Node.js to assist with Grunt.