Changing image domain / path in css for production?

Posted by Neil on Stack Overflow See other posts from Stack Overflow or by Neil
Published on 2010-05-06T18:30:37Z Indexed on 2010/05/06 18:38 UTC
Read the original article Hit count: 204

Filed under:
|

Currently, for things like background images, our css files have no domain specified. This works both in our development and production environments.

background-image: url(/images/bg.png);

For performance reasons (cookie-less domain), we'd like to switch this:

background-image: url(http://staticimagedomain.com/images/bg.png);

Ideally, we don't hard code those, so our development environments can still pull locally.

Any thoughts on how to best achieve this?

© Stack Overflow or respective owner

Related posts about css

Related posts about domains