Skip to content

Commit dd632b7

Browse files
committed
chore:cssmin task added in gruntfile
1 parent 185c151 commit dd632b7

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

Gruntfile.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,30 @@ module.exports = function(grunt) {
5353
watch: {
5454
files: ['src/*'],
5555
tasks: ['default']
56-
}
56+
},
57+
58+
// minify css files
59+
cssmin:{
60+
target:{
61+
files:[{
62+
expand:true,
63+
cwd:'src',
64+
src:['*.css'],
65+
dest:'dist',
66+
ext:'.emoticons.min.css'
67+
}]
68+
}
69+
}
5770

5871
});
5972

6073
grunt.loadNpmTasks("grunt-contrib-concat");
6174
grunt.loadNpmTasks("grunt-contrib-jshint");
6275
grunt.loadNpmTasks("grunt-contrib-uglify");
6376
grunt.loadNpmTasks("grunt-contrib-watch");
77+
grunt.loadNpmTasks("grunt-contrib-cssmin");
6478

65-
grunt.registerTask("build", ["concat", "uglify"]);
79+
grunt.registerTask("build", ["concat", "uglify","cssmin"]);
6680
grunt.registerTask("default", ["jshint", "build"]);
6781

6882
};

0 commit comments

Comments
 (0)