Browse Source

Minify docs CSS files.

-1 HTTP request, -11.5KB (without gzip)
pull/373/head
XhmikosR 11 years ago
parent
commit
2d3f5f5966
  1. 24
      Gruntfile.js
  2. 4
      docs/_includes/header.html
  3. 9
      docs/assets/css/docs.min.css

24
Gruntfile.js

@ -80,15 +80,21 @@ module.exports = function(grunt) {
},
cssmin: {
minify: {
options: {
banner: '', // set to empty ; see bellow
keepSpecialComments: '*', // set to '*' because we already add the banner in sass
report: 'min'
},
files: {
'dist/<%= pkg.name %>.min.css': 'dist/<%= pkg.name %>.css'
}
options: {
banner: '', // set to empty ; see bellow
keepSpecialComments: '*', // set to '*' because we already add the banner in sass
report: 'min'
},
ratchet: {
src: 'dist/<%= pkg.name %>.css',
dest: 'dist/<%= pkg.name %>.min.css'
},
docs: {
src: [
'docs/assets/css/docs.css',
'docs/assets/css/pygments-manni.css'
],
dest: 'docs/assets/css/docs.min.css'
}
},

4
docs/_includes/header.html

@ -12,8 +12,8 @@
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:400,500,700">
<link rel="stylesheet" href="/dist/ratchet.min.css">
<link rel="stylesheet" href="/assets/css/docs.css">
<link rel="stylesheet" href="/assets/css/pygments.css">
<link rel="stylesheet" href="/assets/css/docs.min.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>

9
docs/assets/css/docs.min.css vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save