Skip to content

Commit

Permalink
feat(app): use htmlmin for smaller HTML files
Browse files Browse the repository at this point in the history
Use htmlmin options to minify the HTML correctly. Only 'safe' options
are used

Fixes #469
  • Loading branch information
eddiemonge committed Dec 13, 2013
1 parent ba7b505 commit 2b85a52
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 2b85a52

Please sign in to comment.