Skip to content

Instantly share code, notes, and snippets.

@colorwebdesigner
Last active April 25, 2019 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colorwebdesigner/33b9c46970e16836c4fa271728adfc87 to your computer and use it in GitHub Desktop.
Save colorwebdesigner/33b9c46970e16836c4fa271728adfc87 to your computer and use it in GitHub Desktop.
#gulp #gulp-responsive
"responsive": {
"config": {
"bg/bg-*.jpg": [{
"width": 1600,
"quality": 70,
"rename": { "suffix": "-1600x" },
"skipOnEnlargement": true
}, {
"width": 800,
"quality": 70,
"rename": { "suffix": "-800x" },
"skipOnEnlargement": true
}],
"**/*.jpg": {
"width": 1900
},
"bg/bg-*.png": [{
"width": 1600,
"quality": 30,
"compressionLevel": 6,
"adaptiveFiltering": false,
"rename": { "suffix": "-1600x" },
"skipOnEnlargement": true
}, {
"width": 800,
"compressionLevel": 6,
"adaptiveFiltering": true,
"rename": { "suffix": "-800x" },
"skipOnEnlargement": true
}],
"**/*.png": {
"width": 1900,
"adaptiveFiltering": true
}
},
"options": {
"quality": 80,
"compressionLevel": 7,
"max": true,
"errorOnEnlargement": false,
"errorOnUnusedImage": false,
"errorOnUnusedConfig": false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment