dciccale / grunt-processhtml

Process html files at build time to modify them depending on the release environment
MIT License
407 stars 30 forks source link

[attr] Multiple Values Match Multiple Targets #73

Closed AndreLion closed 9 years ago

AndreLion commented 9 years ago

Hi, I am requiring a new feature like this:

<!-- build:[src]:dev,prod //dev.cdn.com/js/ //cdn.com/js/ -->
<script src="js/lib.js"></script> 
<!-- /build -->

So that different grunt task can output different html code, for example:

The grunt command:

grunt.task.run('processhtml:dev');

generate:

<script src="//dev.cdn.com/js/lib.js"></script> 

Or the grunt command:

grunt.task.run('processhtml:prod');

generate:

<script src="//cdn.com/js/lib.js"></script> 

Many thanks. Andre

dciccale commented 9 years ago

You could achieve that using two different comments