21 lines
446 B
JavaScript
Raw Normal View History

2020-05-19 11:43:42 +03:00
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']);
};