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

25 lines
887 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
/**
* Uglify grunt task for CartoDB.js
*
*/
module.exports = {
task: function() {
return {
dist: {
options: {
banner: '// CartoDB.js version: <%= grunt.config("bump.version") %> \n' +
'// sha: <%= grunt.config.get("gitinfo").local.branch.current.SHA %> \n'
},
files: {
'<%= config.dist %>/cartodb.js': ['<%= config.dist %>/cartodb.uncompressed.js'],
'<%= config.dist %>/cartodb.core.js': ['<%= config.dist %>/cartodb.core.uncompressed.js'],
'<%= config.dist %>/cartodb_nojquery.js': ['<%= config.dist %>/_cartodb_nojquery.js'],
'<%= config.dist %>/cartodb_noleaflet.js': ['<%= config.dist %>/_cartodb_noleaflet.js'],
'<%= config.dist %>/cartodb.mod.torque.js': ['<%= config.dist %>/cartodb.mod.torque.uncompressed.js']
}
}
}
}
}