Skip to content

Commit cf76452

Browse files
committed
Merge pull request #76 from XhmikosR/master
Update Gruntfile.js.
2 parents a3eccd4 + ac59cbd commit cf76452

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Gruntfile.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff 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']);

0 commit comments

Comments
 (0)