Created
July 3, 2014 14:05
-
-
Save stephandesouza/c6236d89c90a9eb2dbe0 to your computer and use it in GitHub Desktop.
Uso do Grunt + Spritemisth
This file contains hidden or 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
'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