47 lines
930 B
JavaScript
47 lines
930 B
JavaScript
|
|
||
|
/**
|
||
|
* Image minifier grunt task for CartoDB.js
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
module.exports = {
|
||
|
task: function() {
|
||
|
return {
|
||
|
dist: {
|
||
|
options: {
|
||
|
progressive: true
|
||
|
},
|
||
|
files: [{
|
||
|
expand: true,
|
||
|
cwd: '<%= config.dist %>/<%= config.app %>',
|
||
|
src: ['*.{png,jpg,gif}'],
|
||
|
dest: '<%= config.dist %>/<%= config.app %>'
|
||
|
}]
|
||
|
},
|
||
|
|
||
|
distCSSImages: {
|
||
|
options: {
|
||
|
progressive: true
|
||
|
},
|
||
|
files: [{
|
||
|
expand: true,
|
||
|
cwd: 'themes/css',
|
||
|
src: [ 'images/**/*.{png,jpg,gif}' ],
|
||
|
dest: '<%= config.dist %>/themes/css'
|
||
|
}]
|
||
|
},
|
||
|
|
||
|
distImages: {
|
||
|
options: {
|
||
|
progressive: true
|
||
|
},
|
||
|
files: [{
|
||
|
expand: true,
|
||
|
cwd: 'themes/img',
|
||
|
src: [ '**/*.{png,jpg,gif}' ],
|
||
|
dest: '<%= config.dist %>/themes/img'
|
||
|
}]
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
}
|