Added grunt-imageoptim task

This commit is contained in:
Bryce Tymrick
2013-08-10 22:08:05 -06:00
parent 70b27b81c5
commit a99ff32e74
2 changed files with 12 additions and 1 deletions

View File

@@ -49,6 +49,14 @@ module.exports = function(grunt) {
}
}
},
imageoptim: {
files: [
'assets/img'
],
options: {
quitAfter: true
}
},
watch: {
less: {
files: [
@@ -79,12 +87,14 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-recess');
grunt.loadNpmTasks('grunt-imageoptim');
// Register tasks
grunt.registerTask('default', [
'clean',
'recess',
'uglify',
'imageoptim',
'version'
]);
grunt.registerTask('dev', [