1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 09:56:51 +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: {
build: ['<%= config.site %>']
build: [
'<%= config.site %>/*',
'!<%= config.site %>/media'
]
},
// Jekyll
@ -41,6 +44,7 @@ module.exports = function(grunt){
// options: {
// lsi: true
// }
src: '<%= config.src %>/'
},
serve: {
src: '<%= config.src %>/'
@ -124,11 +128,10 @@ module.exports = function(grunt){
expand: true,
cwd: '<%= config.site %>/',
src: ['*.png'],
dest: '<%= config.site %>/',
ext: '.png'
dest: '<%= config.site %>/'
}
]
},
}
},
// dev server
@ -234,7 +237,7 @@ module.exports = function(grunt){
'clean',
'rsync:copy_media',
'jekyll:production',
'imagemin',
//'imagemin',
'less',
'cmq',
'cssmin',

View File

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