Skip to content

Commit

Permalink
Added CSS minification task and file minified version
Browse files Browse the repository at this point in the history
  • Loading branch information
gilf committed Jan 1, 2016
1 parent 72ff32b commit e0915e5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,30 @@ module.exports = function (grunt) {
}
}
},
cssmin: {
dist: {
files: {
'ngPrint.min.css': 'ngPrint.css'
}
}
},
ngdocs: {
options: {
startPage: '/',
title: false,
html5Mode: false
},
api: {
src: 'angular-moment.js',
title: 'angular-moment API Documentation'
src: 'ngPrint.js',
title: 'ngPrint API Documentation'
}
}
});

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

grunt.registerTask('default', ['build']);
Expand Down
1 change: 1 addition & 0 deletions ngPrint.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"ngPrint.min.js",
"ngPrint.min.js.map",
"ngPrint.css",
"ngPrint.min.css",
"CHANGELOG.md",
"LICENSE"
],
Expand All @@ -21,6 +22,7 @@
"grunt-cli": "0.1.13",
"grunt-contrib-jshint": "0.11.3",
"grunt-contrib-uglify": "0.9.2",
"grunt-contrib-cssmin": "0.14.0",
"grunt-ngdocs": "0.2.9",
"load-grunt-tasks": "3.3.0"
},
Expand Down

0 comments on commit e0915e5

Please sign in to comment.