h5bp/ant-build-script — pull request #135 by ziggys (2013-01-29 18:29:34+00:00)
Title: Rev image filenames referenced in the main stylesheet or html files.

I have tested this in Windows and it works. Perhaps this should be a option that can be enabled or disabled? Here it is anyways, I set up an example.

Any image file that exists on the server and is referenced within the HTML or CSS files gets revved.

## Example

Images that are referenced inside the following get revved:

* Main stylesheet.
* Any imported stylesheet within the main stylesheet.
* Any HTML file that is declared within the property file.pages or file.pages.default.include

*Images that have a path started with either ftp, http, https, // or data get skipped. Even if we would go through these they would be skipped as well because they don't exist on the server.*

index.html
------------
index.html before:

index.html after:

main.css
------------
main.css before:
.alert { background: url(../img/alert.gif); }
.arrow { background: url(../img/arrow.png); }

main.css after:
.alert { background:url(../img/11f7edbe9e04d0a61078.gif); }
.arrow { background:url(../img/0658353dbcad56bbc535.png); }