Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2014-11-14 16:00:02 +0300
committerXhmikosR <xhmikosr@gmail.com>2015-04-08 09:27:38 +0300
commite778dc1348beaa0b5e452da3076bcf5e335b8917 (patch)
tree1bab4c2f3e2ae09df9bd8b6787ef5b055883c40d /Gruntfile.js
parenta204780b8ba8d53da3a0cd2dac9e4dddc0e3da26 (diff)
Add grunt-contrib-htmlmin.
Only used for the GitHub docs.
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js22
1 files changed, 21 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 293d455a2d..28cd22481e 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -321,6 +321,26 @@ module.exports = function (grunt) {
}
},
+ htmlmin: {
+ dist: {
+ options: {
+ collapseWhitespace: true,
+ conservativeCollapse: true,
+ minifyCSS: true,
+ minifyJS: true,
+ removeAttributeQuotes: true,
+ removeComments: true
+ },
+ expand: true,
+ cwd: '_gh_pages',
+ dest: '_gh_pages',
+ src: [
+ '**/*.html',
+ '!examples/**/*.html'
+ ]
+ }
+ },
+
jade: {
options: {
pretty: true,
@@ -495,7 +515,7 @@ module.exports = function (grunt) {
grunt.registerTask('lint-docs-js', ['jshint:assets', 'jscs:assets']);
grunt.registerTask('docs', ['docs-css', 'lint-docs-css', 'docs-js', 'lint-docs-js', 'clean:docs', 'copy:docs', 'build-glyphicons-data', 'build-customizer']);
- grunt.registerTask('prep-release', ['jekyll:github', 'compress']);
+ grunt.registerTask('prep-release', ['jekyll:github', 'htmlmin', 'compress']);
// Task for updating the cached npm packages used by the Travis build (which are controlled by test-infra/npm-shrinkwrap.json).
// This task should be run and the updated file should be committed whenever Bootstrap's dependencies change.