Yeoman webapp + grunt-spritesmith
// Automatically load required grunt tasks
require('jit-grunt')(grunt, {
// some other aliases
sprite: "grunt-spritesmith"
});
// Define the configuration for all the tasks
grunt.initConfig({
// ... some other tasks
sprite:{
all: {
src: '<%= config.app %>/images/sprites/*.png',
dest: '<%= config.app %>/images/spritesheet.png',
destCss: '<%= config.app %>/styles/sprites.sass'
}
}
});
// remember to add task "sprite" to grunt.task.run