Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
Add cleancss minification to build.
Browse files Browse the repository at this point in the history
  • Loading branch information
awood committed Aug 20, 2014
1 parent 85f0182 commit 295318f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 12 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,26 @@ module.exports = function (grunt) {
sass: {
dist: {
options: {
style: 'compact'
style: 'nested'
},
files: {
'dist/css/patternfly.css': 'sass/patternfly.scss'
}
}
},
cssmin: {
minify: {
expand: true,
cwd: 'dist/css/',
src: ['*.css', '!*.min.css'],
dest: 'dist/css/',
ext: '.min.css'
}
}
});

grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-cssmin');

grunt.registerTask('server', [
'connect:server',
Expand All @@ -78,6 +88,7 @@ module.exports = function (grunt) {

grunt.registerTask('build', [
'sass',
'cssmin'
]);

grunt.registerTask('default', ['build']);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"grunt-contrib-watch": "~0.5.3",
"grunt-contrib-connect": "~0.5.0",
"connect-livereload": "~0.3.0",
"grunt-contrib-uglify": "~0.3.2"
"grunt-contrib-uglify": "~0.3.2",
"grunt-contrib-cssmin": "~0.10.0"
}
}

0 comments on commit 295318f

Please sign in to comment.