Requires grunt-spritesmith which generates a spritesheet from a bunch of images.
This gist passes a custom template for spritesmith to generate the SCSS file.
Gruntfile.js
sprite: {
src: "images/*.png",
dest: "sprites.png",
destCss: "_sprites.scss",
padding: 2, // Due to rounding, needs some space between images
cssTemplate: "sprites.scss.handlebars"
}
index.html
<div class="responsive-sprites">
<img src="sprites.png" class="icon-github">
</div>