diff options
Diffstat (limited to 'Gruntfile.js')
| -rw-r--r-- | Gruntfile.js | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 293d455a2..28cd22481 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. |
