AutorÃa | Ultima modificación | Ver Log |
module.exports = function(grunt) {return {regular: {options: {engine: "im",sizes: [{rename: false,width: '50%',height: '50%'}],newFilesOnly: false},files: [{expand: true,cwd: "src/img/flags/@2x/",// only process 2-char country code files (ignore sub-regions)src: ['*.png'],dest: 'src/img/flags/@1x/'}]},retina: {options: {engine: "im",// just generate the @2x images here, then use evenizer to get even pixel values for width and height before generating the @1x imagessizes: [{rename: false,width: 40,height: 30}],// re-gen the images even if the dest files already exist. this is useful for when we change settings herenewFilesOnly: false},files: [{expand: true,cwd: "node_modules/region-flags/png/",// only process 2-char country code files (ignore sub-regions)src: ['??.png'],dest: 'src/img/flags/@2x/'}]}};};