Browse Source

img min

master
David Miller 12 years ago
parent
commit
46c82e196b
  1. 13
      Gruntfile.js

13
Gruntfile.js

@ -48,6 +48,16 @@ module.exports = function(grunt) { @@ -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) { @@ -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']);
};

Loading…
Cancel
Save