Skip to content

Commit 4b8e356

Browse files
committed
Adding cssmin to Gruntfile and updating minified css
1 parent 6678c1c commit 4b8e356

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Gruntfile.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ module.exports = function(grunt) {
1414
}
1515
},
1616
},
17+
cssmin: {
18+
minify: {
19+
expand: true,
20+
src: 'jquery.jgrowl.css',
21+
ext: '.jgrowl.min.css'
22+
}
23+
},
1724
jshint: {
1825
files: ['Gruntfile.js', 'jquery.jgrowl.js'],
1926
options: {
@@ -33,11 +40,12 @@ module.exports = function(grunt) {
3340
});
3441

3542
grunt.loadNpmTasks('grunt-contrib-uglify');
43+
grunt.loadNpmTasks('grunt-contrib-cssmin');
3644
grunt.loadNpmTasks('grunt-contrib-jshint');
3745
grunt.loadNpmTasks('grunt-contrib-watch');
3846

3947
grunt.registerTask('test', ['jshint']);
4048

41-
grunt.registerTask('default', ['jshint', 'uglify']);
49+
grunt.registerTask('default', ['jshint', 'uglify', 'cssmin']);
4250

4351
};

jquery.jgrowl.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"grunt": "~0.4.2",
66
"grunt-contrib-jshint": "~0.6.3",
77
"grunt-contrib-uglify": "~0.4.0",
8+
"grunt-contrib-cssmin": "~0.9.0",
89
"grunt-contrib-watch": "~0.6.1"
910
}
1011
}

0 commit comments

Comments
 (0)