Created
May 1, 2014 13:03
-
-
Save viktorbezdek/61cf8e278e5ad2fd901c to your computer and use it in GitHub Desktop.
Gruntfile for CSS sprites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (grunt) { | |
grunt.initConfig({ | |
// spritesmith | |
sprite: { | |
all: { | |
src: 'src/assets/img/icons/*.png', | |
destImg: 'src/assets/img/spritesheet.png', | |
destCSS: 'src/styles/sprites.css' | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-newer'); | |
grunt.loadNpmTasks('grunt-spritesmith'); | |
grunt.registerTask('sprites', ['newer:sprite']); | |
grunt.registerTask('default', []); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment