module.exports = function(grunt) { "use strict"; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { preserveComments: "some", compress: { drop_console: true } }, build: { src: 'eventsource.js', dest: 'eventsource.min.js' } } }); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.registerTask('default', ['uglify']); };