From 3e7047f842ce2e6047d6c4ad36d9ddc10427de70 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 23 Nov 2013 14:00:38 +0100 Subject: [PATCH] remove that responsive images grunt task --- Gruntfile.js | 34 +---------------------------- _src/_plugins/rsync_media_folder.rb | 2 +- 2 files changed, 2 insertions(+), 34 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 58376a12..3ce36855 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -84,32 +84,6 @@ module.exports = function(grunt){ } }, - responsive_images: { - production: { - options: { - sizes: [{ - name: 'small', - width: 320 - },{ - name: 'medium', - width: 640 - },{ - name: 'large', - width: 1280 - },{ - name: 'jumbo', - width: 2560 - }] - }, - files: [{ - expand: true, - cwd: '_src/_media', - src: ['**.{jpg,jpeg,gif,png}'], - custom_dest: '_site/media/{%= width %}/' - }] - } - }, - // image optimization imagemin: { assets: { @@ -222,13 +196,7 @@ module.exports = function(grunt){ 'connect', 'watch' ]); - - // Images only tasks - grunt.registerTask('images', [ - 'responsive_images', - 'imagemin' - ]); - + // Imagemin only task grunt.registerTask('imagemin', [ 'imagemin' diff --git a/_src/_plugins/rsync_media_folder.rb b/_src/_plugins/rsync_media_folder.rb index ca7c1aa3..ea79d410 100644 --- a/_src/_plugins/rsync_media_folder.rb +++ b/_src/_plugins/rsync_media_folder.rb @@ -3,7 +3,7 @@ module Jekyll class RsyncMediaFolder < Generator def generate(site) system('mkdir -p _site'); # We may be called before _site exists. - system('rsync --archive _src/_media/ _site/media/'); + system('rsync --archive --delete _src/_media/ _site/media/'); end end end \ No newline at end of file