mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Minify docs CSS too.
This commit is contained in:
parent
ebf7807985
commit
f00bbdd994
17
Gruntfile.js
17
Gruntfile.js
@ -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']);
|
||||||
|
@ -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
6
docs/assets/css/pack.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user