Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
module.exports = function(grunt) {
2
  return {
3
    regular: {
4
      options: {
5
        engine: "im",
6
        sizes: [{
7
          rename: false,
8
          width: '50%',
9
          height: '50%'
10
        }],
11
        newFilesOnly: false
12
      },
13
      files: [{
14
        expand: true,
15
        cwd: "src/img/flags/@2x/",
16
        // only process 2-char country code files (ignore sub-regions)
17
        src: ['*.png'],
18
        dest: 'src/img/flags/@1x/'
19
      }]
20
    },
21
    retina: {
22
      options: {
23
        engine: "im",
24
        // just generate the @2x images here, then use evenizer to get even pixel values for width and height before generating the @1x images
25
        sizes: [{
26
          rename: false,
27
          width: 40,
28
          height: 30
29
        }],
30
        // re-gen the images even if the dest files already exist. this is useful for when we change settings here
31
        newFilesOnly: false
32
      },
33
      files: [{
34
        expand: true,
35
        cwd: "node_modules/region-flags/png/",
36
        // only process 2-char country code files (ignore sub-regions)
37
        src: ['??.png'],
38
        dest: 'src/img/flags/@2x/'
39
      }]
40
    }
41
  };
42
};