cartodb-4.42/lib/assets/javascripts/cdb/grunt/tasks/imagemin.js

47 lines
930 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
/**
* 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'
}]
},
}
}
}