0
I’m using Grunt in my project, I can concatenate them and minify them as desired. But I need to change the links from my page to the minified files. For example:
Of:
<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 wonder 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 help with Grunt.
Are you using Node? that head exists on each page or have a head file that is included on all pages?
– Sergio
Yes, I am using Node.js too. I have only one page with the links because I use Angularjs for Singlepage Application.
– Shura16