sebdeckers / grunt-rev

:punch: Asset revving for Grunt.js
MIT License
240 stars 54 forks source link

Grunt-Rev with data-src #22

Open borisschapira opened 10 years ago

borisschapira commented 10 years ago

Hi, I'm using some lazy/responsive loading scripts, such as https://github.com/BBC-News/Imager.js/ for tag creation at execution.

"Image" creation is done through <div> and data-src attribute. But rev does not alter those...

Before or after rev, I have :

<div style="width: 240px">
    <div class="delayed-image-load" data-src="http://placehold.it/{width}" data-alt="alternative text"></div>
</div>

Is there a way to configure rev to alter the HTML of my pages, modifying not only src but also data-src (or another data-* attribute).