Skip to content

Commit

Permalink
Merge pull request #43 from chrisnicola/patch-1
Browse files Browse the repository at this point in the history
Safe set of minification defaults
  • Loading branch information
jhnns committed Feb 15, 2016
2 parents 5fb1cf3 + b797acf commit 2abb0d7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,17 @@ module.exports = function(content) {

[
"removeComments",
"removeCommentsFromCDATA",
"removeCDATASectionsFromCDATA",
"collapseWhitespace",
"collapseBooleanAttributes",
"conservativeCollapse",
"removeAttributeQuotes",
"removeRedundantAttributes",
"useShortDoctype",
"removeEmptyAttributes",
"removeOptionalTags"
"keepClosingSlash",
"minifyJS",
"minifyCSS",
"removeScriptTypeAttributes",
"removeStyleTypeAttributes",
].forEach(function(name) {
if (typeof minimizeOptions[name] === "undefined") {
minimizeOptions[name] = true;
Expand Down

0 comments on commit 2abb0d7

Please sign in to comment.