File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,29 @@ module.exports = function(grunt) {
22
33 // Project configuration.
44 grunt . initConfig ( {
5- pkg : grunt . file . readJSON ( 'package.json' ) ,
5+ jshint : {
6+ options : {
7+ jshintrc : '.jshintrc'
8+ } ,
9+ all : [ '*.js' ]
10+ } ,
611 uglify : {
712 options : {
8- preserveComments : 'some'
13+ compress : true ,
14+ mangle : true ,
15+ preserveComments : 'some' ,
16+ report : 'gzip'
917 } ,
1018 build : {
1119 src : 'jquery.mousewheel.js' ,
1220 dest : 'build/jquery.mousewheel.min.js'
1321 }
14- } ,
15- jshint : {
16- options : {
17- jshintrc : '.jshintrc'
18- } ,
19- all : [ '*.js' ]
2022 }
2123 } ) ;
2224
2325 // Load the plugin that provides the 'uglify' task.
24- grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
2526 grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
27+ grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
2628
2729 // Default task(s).
2830 grunt . registerTask ( 'default' , [ 'jshint' , 'uglify' ] ) ;
You can’t perform that action at this time.
0 commit comments