Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Image paths in css files get revved and can't be found #205

Closed
gsklee opened this issue Nov 20, 2013 · 4 comments
Closed

Image paths in css files get revved and can't be found #205

gsklee opened this issue Nov 20, 2013 · 4 comments

Comments

@gsklee
Copy link

gsklee commented Nov 20, 2013

Say I got an image background:

background: #c7a07f url('images/phone.png');

After running it through grunt, the filename of the image has been revved into 53a6ac41.phone.png and the browser can't locate it. Is there any way to annotate the CSS so that it automatically updates to something like this?

background: #c7a07f url('images/53a6ac41.phone.png');

I believe there is a way to do this but can find no way about it anywhere on available documents.

@gsklee
Copy link
Author

gsklee commented Nov 20, 2013

Okay, I was able to fix this by using the absolute path:

background: #c7a07f url('/images/phone.png');

Seems to be the same issue with yeoman/yeoman#824

BTW this is happening in v0.4.3 since v0.4.4 is not working properly currently (#204).

@eddiemonge
Copy link
Member

so are you still having an issue/

@gsklee
Copy link
Author

gsklee commented Nov 21, 2013

Yep, it should be able to work on relative paths as well.

@eddiemonge
Copy link
Member

this is a usemin bug and should be opened there (i think it already has been).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants