Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
Merge pull request #501 from eddiemonge/htmlOpts
Browse files Browse the repository at this point in the history
feat(app): use htmlmin for smaller HTML files
  • Loading branch information
sindresorhus committed Dec 13, 2013
2 parents ba7b505 + 2b85a52 commit aef2c61
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions templates/common/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,10 @@ module.exports = function (grunt) {
htmlmin: {
dist: {
options: {
// Optional configurations that you can uncomment to use
// removeCommentsFromCDATA: true,
// collapseBooleanAttributes: true,
// removeAttributeQuotes: true,
// removeRedundantAttributes: true,
// useShortDoctype: true,
// removeEmptyAttributes: true,
// removeOptionalTags: true*/
collapseWhitespace: true,
collapseBooleanAttributes: true,
removeCommentsFromCDATA: true,
removeOptionalTags: true
},
files: [{
expand: true,
Expand Down Expand Up @@ -358,8 +354,7 @@ module.exports = function (grunt) {
'compass:dist',<% } else { %>
'copy:styles',<% } %>
'imagemin',
'svgmin',
'htmlmin'
'svgmin'
]
},

Expand Down Expand Up @@ -440,7 +435,8 @@ module.exports = function (grunt) {
'cssmin',
'uglify',
'rev',
'usemin'
'usemin',
'htmlmin'
]);

grunt.registerTask('default', [
Expand Down

0 comments on commit aef2c61

Please sign in to comment.