niftylettuce/express-cdn — pull request #18 by JoshuaGross (2012-09-18 23:26:58+00:00)
Title: Upload images referenced in CSS files

I believe this was requested - though it's not through Stylus, LESS, etc. I decided it was easier to just parse out any images referenced in the CSS file. For me it was useless to CDNify CSS at all if it didn't also upload all images.

Note that this works with the `background-image`, `background`, and `contents` CSS attributes. The image paths MUST be absolute (e.g. if you do a "../whatever.png" it won't work) and a descendent of `options.publicDir`.

Let me know what you think!