Skip to content

Commit

Permalink
We can now use --collapse-whitespace to further minify the html
Browse files Browse the repository at this point in the history
  • Loading branch information
hifocus committed Oct 2, 2020
1 parent a6c0aba commit 670e89b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 7 additions & 11 deletions merger.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,16 @@ <h2 id="name"></h2>
<!-- Button Section Starts -->
<div id="pending">
<p id="depends" class="middlebtn">
<a href="#showqrcode" class="btn btn-primary" id="tenpaybtn" onclick="opentenpay()"><svg class="icon"
aria-hidden="true">
<a href="#showqrcode" class="btn btn-primary" id="tenpaybtn" onclick="opentenpay()"><svg class="icon" aria-hidden="true">
<use xlink:href="#icon-QQ"></use>
</svg></a>
<a href="#showqrcode" class="btn btn-primary" id="toclick" onclick="openwechat()"><svg class="icon"
aria-hidden="true">
</svg></a><span></span>
<a href="#showqrcode" class="btn btn-primary" id="toclick" onclick="openwechat()"><svg class="icon" aria-hidden="true">
<use xlink:href="#icon-weixinzhifu"></use>
</svg></a>
<a href="#showqrcode" class="btn btn-primary" id="alipaybtn" onclick="openalipay()"><svg class="icon"
aria-hidden="true">
</svg></a><span></span>
<a href="#showqrcode" class="btn btn-primary" id="alipaybtn" onclick="openalipay()"><svg class="icon" aria-hidden="true">
<use xlink:href="#icon-iconfontrectangle390"></use>
</svg></a>
<button class="btn btn-primary" id="paypalbtn" onclick="openbox()"><svg class="icon paypal-wide"
aria-hidden="true">
</svg></a><span></span>
<button class="btn btn-primary" id="paypalbtn" onclick="openbox()"><svg class="icon paypal-wide" aria-hidden="true">
<use xlink:href="#icon-paypal"></use>
</svg></button>
</p>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "merger.html",
"scripts": {
"move": "rm -rf public && mkdir public && cp merger.html public/index.html && cp -r assets public/assets",
"minify": "html-minifier --input-dir ./public --output-dir ./public --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --file-ext html --minify-css true --minify-js true",
"minify": "html-minifier --input-dir ./public --output-dir ./public --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --file-ext html --minify-css true --minify-js true",
"build": "npm run-script move && npm run-script minify"
},
"repository": {
Expand Down

1 comment on commit 670e89b

@vercel
Copy link

@vercel vercel bot commented on 670e89b Oct 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.