From 009d9d2b538c473ba5747cc5d21cab28c4ec9b7e Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 2 Mar 2014 10:47:23 +0200 Subject: [PATCH 1/3] Docs: Use the minified ratchet.css. --- docs/_includes/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_includes/header.html b/docs/_includes/header.html index b2d7bd0..19579cb 100644 --- a/docs/_includes/header.html +++ b/docs/_includes/header.html @@ -11,7 +11,7 @@ - + From 2d3f5f59664194b8c360e9633ecedbc64113227a Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 2 Mar 2014 10:48:59 +0200 Subject: [PATCH 2/3] Minify docs CSS files. -1 HTTP request, -11.5KB (without gzip) --- Gruntfile.js | 24 +++++++++++++++--------- docs/_includes/header.html | 4 ++-- docs/assets/css/docs.min.css | 9 +++++++++ 3 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 docs/assets/css/docs.min.css diff --git a/Gruntfile.js b/Gruntfile.js index dc375a3..dcec48c 100644 --- a/Gruntfile.js +++ b/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' } }, diff --git a/docs/_includes/header.html b/docs/_includes/header.html index 19579cb..d44288e 100644 --- a/docs/_includes/header.html +++ b/docs/_includes/header.html @@ -12,8 +12,8 @@ - - + +