Add option to skip minification of images.
Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -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 | var minify = mpConfig.images.options.minify; | ||
526 | if (minify === undefined || minify) { | ||
525 | buildList.push('imagemin'); // image | 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 | ... | ... |
-
Please register or sign in to post a comment