cartodb-4.29/carto.js/grunt/tasks/imagemin.js
2020-06-15 10:58:47 +08:00

22 lines
382 B
JavaScript

/**
* Image minifier grunt task for CARTO.js
*
*/
module.exports = {
task: function() {
return {
distImages: {
options: {
progressive: true
},
files: [{
expand: true,
cwd: 'themes/img',
src: [ '**/*.{png,jpg,gif,svg}' ],
dest: '<%= dist %>/internal/themes/img'
}]
}
}
}
}