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

feat(app): use htmlmin for smaller HTML files #501

Merged
merged 1 commit into from
Dec 13, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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