diff --git a/Gruntfile.js b/Gruntfile.js index 6f85588..b7c7732 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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', [ diff --git a/package.json b/package.json index d2d8ffc..780ecda 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "grunt-contrib-jshint": "~0.1.1", "grunt-contrib-uglify": "~0.1.1", "grunt-contrib-watch": "~0.2.0", - "grunt-recess": "~0.3.0" + "grunt-recess": "~0.3.0", + "grunt-imageoptim": "~1.2.11" } }