@tdb/web
Version:
Common condiguration for serving a web-site and testing web-based UI components.
21 lines (20 loc) • 474 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']);
};