Notes On Image Spriting With Compass And Sass.
I found some old notes from the last time I had to sprite some images using Compass for Sass. It was a success, and I noted two things to share with you.
- The path
@import "sprites/*.png";is relative to the
images_dirthat you've defined in config.rb.
- It'd be nice if Compass automatically compressed the resulting .png files through https://tinypng.com/ or something similar.
Tags: compass sass