1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +01:00

something wrong with imagemin

This commit is contained in:
Matthias Kretschmann 2013-11-24 01:05:20 +01:00
parent 1b93c455e0
commit b565720c4c
2 changed files with 10 additions and 7 deletions

View File

@ -29,7 +29,10 @@ module.exports = function(grunt){
// clean everything // clean everything
clean: { clean: {
build: ['<%= config.site %>'] build: [
'<%= config.site %>/*',
'!<%= config.site %>/media'
]
}, },
// Jekyll // Jekyll
@ -41,6 +44,7 @@ module.exports = function(grunt){
// options: { // options: {
// lsi: true // lsi: true
// } // }
src: '<%= config.src %>/'
}, },
serve: { serve: {
src: '<%= config.src %>/' src: '<%= config.src %>/'
@ -124,11 +128,10 @@ module.exports = function(grunt){
expand: true, expand: true,
cwd: '<%= config.site %>/', cwd: '<%= config.site %>/',
src: ['*.png'], src: ['*.png'],
dest: '<%= config.site %>/', dest: '<%= config.site %>/'
ext: '.png'
} }
] ]
}, }
}, },
// dev server // dev server
@ -234,7 +237,7 @@ module.exports = function(grunt){
'clean', 'clean',
'rsync:copy_media', 'rsync:copy_media',
'jekyll:production', 'jekyll:production',
'imagemin', //'imagemin',
'less', 'less',
'cmq', 'cmq',
'cssmin', 'cssmin',

View File

@ -42,7 +42,7 @@ picture:
markup: "picturefill" markup: "picturefill"
presets: presets:
default: default:
ppi: [1, 1.5] ppi: [1, 1.5, 2]
attr: attr:
itemprop: "image" itemprop: "image"
source_medium: source_medium:
@ -54,7 +54,7 @@ picture:
source_default: source_default:
width: "320" width: "320"
featured: featured:
ppi: [1, 1.5] ppi: [1, 1.5, 2]
attr: attr:
class: "featured-image" class: "featured-image"
itemprop: "image" itemprop: "image"