Skip to content

Commit 2abb0d7

Browse files
committed
Merge pull request webpack-contrib#43 from chrisnicola/patch-1
Safe set of minification defaults
2 parents 5fb1cf3 + b797acf commit 2abb0d7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

index.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,17 @@ module.exports = function(content) {
6262

6363
[
6464
"removeComments",
65+
"removeCommentsFromCDATA",
66+
"removeCDATASectionsFromCDATA",
6567
"collapseWhitespace",
66-
"collapseBooleanAttributes",
68+
"conservativeCollapse",
6769
"removeAttributeQuotes",
68-
"removeRedundantAttributes",
6970
"useShortDoctype",
70-
"removeEmptyAttributes",
71-
"removeOptionalTags"
71+
"keepClosingSlash",
72+
"minifyJS",
73+
"minifyCSS",
74+
"removeScriptTypeAttributes",
75+
"removeStyleTypeAttributes",
7276
].forEach(function(name) {
7377
if (typeof minimizeOptions[name] === "undefined") {
7478
minimizeOptions[name] = true;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy