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) {
2
2
3
3
// Project configuration.
4
4
grunt . initConfig ( {
5
- pkg : grunt . file . readJSON ( 'package.json' ) ,
5
+ jshint : {
6
+ options : {
7
+ jshintrc : '.jshintrc'
8
+ } ,
9
+ all : [ '*.js' ]
10
+ } ,
6
11
uglify : {
7
12
options : {
8
- preserveComments : 'some'
13
+ compress : true ,
14
+ mangle : true ,
15
+ preserveComments : 'some' ,
16
+ report : 'gzip'
9
17
} ,
10
18
build : {
11
19
src : 'jquery.mousewheel.js' ,
12
20
dest : 'build/jquery.mousewheel.min.js'
13
21
}
14
- } ,
15
- jshint : {
16
- options : {
17
- jshintrc : '.jshintrc'
18
- } ,
19
- all : [ '*.js' ]
20
22
}
21
23
} ) ;
22
24
23
25
// Load the plugin that provides the 'uglify' task.
24
- grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
25
26
grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
27
+ grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
26
28
27
29
// Default task(s).
28
30
grunt . registerTask ( 'default' , [ 'jshint' , 'uglify' ] ) ;
You can’t perform that action at this time.
0 commit comments