Files
30-seconds-of-code/node_modules/event-source-polyfill/Gruntfile.js
2019-08-20 15:52:05 +02:00

21 lines
454 B
JavaScript

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