2createStudio / postcss-sprites

Generate sprites from stylesheets.
MIT License
413 stars 50 forks source link

Add imagePath option #23

Closed silvenon closed 9 years ago

silvenon commented 9 years ago

This would enable postcss-sprite to resolve url('/images/...') paths. If you like the idea, I could submit a PR.

vvasilev- commented 9 years ago

Hello, I will be happy if you can submit a PR because I don't have time to implement this feature at the moment. :)

silvenon commented 9 years ago

Sure. I can implement it as an array which defines the order where to look for images.

Awesome plugin, by the way. It solves many issues I've been having, especially having to hardcode image dimensions in HTML/CSS.

jackyjieliu commented 8 years ago

Hi, I am wondering why this issue was closed. I would like this feature for my project because I have css and images in different directories. I can try to submit a pr if you guys are busy.

silvenon commented 8 years ago

@jackyjieliu I think it was closed due to my lack of response (sorry). I moved away from image sprites, so my motivation is not that strong anymore. Feel free to submit a PR :+1:

jackyjieliu commented 8 years ago

I was able to do what I was looking for after upgrading to the latest version. Thanks