cartodb-4.42/lib/assets/javascripts/cdb/grunt/tasks/imagemin.js
2024-04-06 05:25:13 +00:00

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'
}]
},
}
}
}