Javascript 使用grunt usemin在不同的html文档上复制相同的资产块

Javascript 使用grunt usemin在不同的html文档上复制相同的资产块,javascript,gruntjs,grunt-usemin,Javascript,Gruntjs,Grunt Usemin,我在grunt中使用grunt usemin进行缩小,将所有js文件合并到index.html头上的缩小文件中: <!-- build:js js/indexBulk.js --> <script src="js/common/mifirstfile.js"></script> <script src="js/common/errors.js"></script> <script src="js/commo

我在grunt中使用grunt usemin进行缩小,将所有js文件合并到index.html头上的缩小文件中:

<!-- build:js js/indexBulk.js -->
    <script src="js/common/mifirstfile.js"></script>
    <script src="js/common/errors.js"></script>
    <script src="js/common/anotherfile.js"></script>
    <script src="lib/angular/angular.js"></script>
 <!-- endbuild -->

这是完美的…但是如果我有一些其他html静态文件,在头上有完全相同的js文件,我必须如何继续,以防止每次复制这个块的事实

有没有一种方法可以在不复制此块的情况下将缩小的文件放在我的其他每个html文件的头上