1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 01:46:51 +01:00

remove that responsive images grunt task

This commit is contained in:
Matthias Kretschmann 2013-11-23 14:00:38 +01:00
parent 9fb0040d8b
commit 3e7047f842
2 changed files with 2 additions and 34 deletions

View File

@ -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'

View File

@ -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