From ac59cbd3af1b04d29d5952319a14668ef6d3ae99 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 18 Oct 2013 18:48:54 +0300 Subject: [PATCH] Update Gruntfile.js. * remove unneeded variable * move jshint first * update uglify-js options --- Gruntfile.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index b3102a7ff..ec9e4e5fa 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -2,27 +2,29 @@ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - uglify: { - options: { - preserveComments: 'some' - }, - build: { - src: 'jquery.mousewheel.js', - dest: 'build/jquery.mousewheel.min.js' - } - }, jshint: { options: { jshintrc: '.jshintrc' }, all: ['*.js'] + }, + uglify: { + options: { + compress: true, + mangle: true, + preserveComments: 'some', + report: 'gzip' + }, + build: { + src: 'jquery.mousewheel.js', + dest: 'build/jquery.mousewheel.min.js' + } } }); // Load the plugin that provides the 'uglify' task. - grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-jshint'); + grunt.loadNpmTasks('grunt-contrib-uglify'); // Default task(s). grunt.registerTask('default', ['jshint', 'uglify']);