gruntjs - Grunt usemin task to replace resources -


using gruntjs, possible replace resources in html file remote path (or perhaps anypath)? i'm particularly interested in doing usemin plugin.

possible sample functionality:

before

<!-- build:js //cdnjs.cloudflare.com/ajax/libs/angular.js/1.1.3/angular.js --> <script src="/lib/angular.js"></script> <!-- endbuild --> 

after

<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.1.3/angular.js"></script> 

this idea similar usemin plugin skips concatenation of enclosed resources new file of specified name. in other words, replaces enclosed html single resource of specified path.

i wrote grunt-dom-munger because found usemin specific. can use grunt-dom-munger alter html see fit , read script tags , send concat/uglify/etc.

grunt-dom-munger


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -