0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

Minify docs CSS too.

This commit is contained in:
XhmikosR 2013-12-22 09:25:18 +02:00
parent ebf7807985
commit f00bbdd994
4 changed files with 24 additions and 3 deletions

View File

@ -179,6 +179,21 @@ module.exports = function (grunt) {
} }
}, },
cssmin: {
compress: {
options: {
keepSpecialComments: '*',
report: 'min',
selectorsMergeMode: 'ie8'
},
src: [
'docs/assets/css/docs.css',
'docs/assets/css/pygments-manni.css'
],
dest: 'docs/assets/css/pack.min.css'
}
},
usebanner: { usebanner: {
dist: { dist: {
options: { options: {
@ -330,7 +345,7 @@ module.exports = function (grunt) {
grunt.registerTask('dist-js', ['concat', 'uglify']); grunt.registerTask('dist-js', ['concat', 'uglify']);
// CSS distribution task. // CSS distribution task.
grunt.registerTask('dist-css', ['less', 'csscomb', 'usebanner']); grunt.registerTask('dist-css', ['less', 'cssmin', 'csscomb', 'usebanner']);
// Docs distribution task. // Docs distribution task.
grunt.registerTask('dist-docs', ['copy:docs']); grunt.registerTask('dist-docs', ['copy:docs']);

View File

@ -17,8 +17,7 @@
<link href="{{ site.baseurl }}dist/css/bootstrap.min.css" rel="stylesheet"> <link href="{{ site.baseurl }}dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Documentation extras --> <!-- Documentation extras -->
<link href="{{ site.baseurl }}assets/css/docs.css" rel="stylesheet"> <link href="{{ site.baseurl }}assets/css/pack.min.css" rel="stylesheet">
<link href="{{ site.baseurl }}assets/css/pygments-manni.css" rel="stylesheet">
<!--[if lt IE 9]><script src="{{ site.baseurl }}assets/js/ie8-responsive-file-warning.js"></script><![endif]--> <!--[if lt IE 9]><script src="{{ site.baseurl }}assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

6
docs/assets/css/pack.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -33,6 +33,7 @@
"grunt-contrib-connect": "~0.6.0", "grunt-contrib-connect": "~0.6.0",
"grunt-contrib-copy": "~0.5.0", "grunt-contrib-copy": "~0.5.0",
"grunt-contrib-csslint": "~0.2.0", "grunt-contrib-csslint": "~0.2.0",
"grunt-contrib-cssmin": "~0.7.0",
"grunt-contrib-jshint": "~0.8.0", "grunt-contrib-jshint": "~0.8.0",
"grunt-contrib-less": "~0.9.0", "grunt-contrib-less": "~0.9.0",
"grunt-contrib-qunit": "~0.3.0", "grunt-contrib-qunit": "~0.3.0",