8f636a83 by Adam Heath

Add option to skip minification of images.

1 parent af1c5d27
...@@ -522,7 +522,12 @@ module.exports = function (grunt) { ...@@ -522,7 +522,12 @@ module.exports = function (grunt) {
522 } 522 }
523 buildList.push('copy:css'); // css 523 buildList.push('copy:css'); // css
524 if (mpConfig.images) { 524 if (mpConfig.images) {
525 buildList.push('imagemin'); // image 525 var minify = mpConfig.images.options.minify;
526 if (minify === undefined || minify) {
527 buildList.push('imagemin'); // image
528 } else {
529 buildList.push('copy:img'); // image
530 }
526 buildList.push('svgmin'); // image 531 buildList.push('svgmin'); // image
527 if (mpConfig.useRev) { 532 if (mpConfig.useRev) {
528 buildList.push('rev:img'); // image 533 buildList.push('rev:img'); // image
......