From 46c82e196bfad95d2a8ab57b20fc4d0feac31e09 Mon Sep 17 00:00:00 2001 From: David Miller Date: Tue, 12 Aug 2014 23:15:51 -0400 Subject: [PATCH] img min --- Gruntfile.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 42122d5..549841f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -48,6 +48,16 @@ module.exports = function(grunt) { "dist/css/agency.css": "less/agency.less" } } + }, + imagemin: { + dynamic: { + files: [{ + expand: true, + cwd: 'img/', + src: ['**/*.{png,jpg,gif}'], + dest: 'dist/img/' + }] + } } }); @@ -55,8 +65,9 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-less'); + grunt.loadNpmTasks('grunt-contrib-imagemin'); // Default task(s). - grunt.registerTask('default', ['concat', 'copy', 'less']); + grunt.registerTask('default', ['concat', 'copy', 'less', 'imagemin']); };