Skip to content

Commit

Permalink
feat(grunt): Add grunt-csso in build task #2
Browse files Browse the repository at this point in the history
  • Loading branch information
oswaldoacauan committed Nov 17, 2013
1 parent 904e6b5 commit 5472a6a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
23 changes: 21 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,30 @@ module.exports = function(grunt) {
cssmin: {
build: {
options: {
banner: '<%= tag.banner %>',
report: 'gzip'
}
}
},

/**
* Minify concated CSS files
* Compresses and minifies CSS
*/
csso: {
build: {
options: {
banner: '<%= tag.banner %>',
report: 'gzip'
},
files: [{
expand: true,
cwd: '<%= dir.build %><%= dir.css %>',
src: '**/*.css',
dest: '<%= dir.build %><%= dir.css %>'
}]
}
},

/**
* Compresses Image files
* Compresses all images
Expand Down Expand Up @@ -395,7 +413,8 @@ module.exports = function(grunt) {
'rev',
'copy:build',
'usemin',
'concurrent:build'
'concurrent:build',
'csso:build'
]);

/**
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"grunt-usemin": "~2.0.0",
"grunt-concurrent": "~0.4.1",
"grunt-push-release": "~0.1.1",
"grunt-conventional-changelog": "~1.0.0"
"grunt-conventional-changelog": "~1.0.0",
"grunt-csso": "~0.5.0"
},
"engines": {
"node": ">=0.10.0"
Expand Down

0 comments on commit 5472a6a

Please sign in to comment.