Skip to content

Instantly share code, notes, and snippets.

@stephandesouza
Created July 3, 2014 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stephandesouza/c6236d89c90a9eb2dbe0 to your computer and use it in GitHub Desktop.
Save stephandesouza/c6236d89c90a9eb2dbe0 to your computer and use it in GitHub Desktop.
Uso do Grunt + Spritemisth
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
sprite:{
all: {
algorithm: 'binary-tree',
src: 'public/r/sprites/*.png',
destImg: 'public/r/sprites.794984.png',
destCSS: 'public/r/css/sprites.less',
cssFormat: 'less'
}
},
watch: {
sprite: {
files: [
'public/r/sprites/*.png'
],
tasks: ['sprite']
},
},
});
// Load tasks
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-spritesmith');
// Register tasks
grunt.registerTask('default', [
'clean',
'sprite','
]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment