Skip to content

Commit

Permalink
Add .minify.json to keep optional tags
Browse files Browse the repository at this point in the history
  • Loading branch information
remino committed Sep 18, 2024
1 parent c9a0c22 commit 5b4d21b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .minify.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"js": {
"mangle": true,
"mangleClassNames": true,
"removeUnusedVariables": true,
"removeConsole": false,
"removeUselessSpread": true
},
"img": {
"maxSize": 4096
},
"html": {
"removeComments": false,
"removeCommentsFromCDATA": true,
"removeCDATASectionsFromCDATA": true,
"collapseWhitespace": true,
"collapseBooleanAttributes": true,
"removeAttributeQuotes": true,
"removeRedundantAttributes": true,
"useShortDoctype": true,
"removeEmptyAttributes": true,
"removeEmptyElements": false,
"removeOptionalTags": false,
"removeScriptTypeAttributes": true,
"removeStyleLinkTypeAttributes": true,
"minifyJS": true,
"minifyCSS": true
},
"css": {
"compatibility": "*"
}
}

0 comments on commit 5b4d21b

Please sign in to comment.