I am using grunt usemin plugin to minify my javascripts on a JSP page.
I would like to extend grunt features to achieve code similar to the one below; basically add some jsp scriptlet feature code using processhtml or template plugins so that there will be more control on debugging while deploying code to production.
Is this possible?
<c:choose>
<c:when test="${true eq param.jsdebug}">
<script type="text/javascript" src="js/plugins/ratings/star-rating.js"></script>
</c:when>
<c:when test="${true eq param.jscombined}">
<script type="text/javascript" src="target/minify/assets/js/skills/skills.combined.js"></script>
</c:when>
<c:otherwise>
<script type="text/javascript" src="target/minify/assets/js/skills/skills.min.js"></script>
</c:otherwise>