You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,11 @@
5
5
6
6
EmailMinifier is a well-tested email minifier based on TypeScript for browser and Node.js
7
7
8
-
As a quick start, you can [Try it online](https://luckrnx09.github.io/email-minifier/playground) - NOT READY, Welcome to submit a PR 🚀
8
+
As a quick start, you can [Try it online](https://luckrnx09.github.io/email-minifier/playground) - NOT READY. Welcome to submit a PR 🚀
9
9
10
10
## Why not HTMLMinifier
11
11
12
-
EmailMinifier is a great tool for compressing HTML. But email is different from HTML in many ways, compression of HTML is often not the best solution.
12
+
[HTMLMinifier](https://github.com/kangax/html-minifier) is a great tool for compressing HTML. But email is different from HTML in many ways, compression of HTML is often not the best solution.
13
13
- JavaScript code is not supported or required in emails.
14
14
- The interactive behavior of the email is very limited, most HTML attributes are useless for the email but still load them when user open it.
15
15
- Some email clients crop oversized emails (e.g. Gmail) and the style of the email is broken after cropping, which is extremely detrimental to marketing.
@@ -89,10 +89,17 @@ const options = {
89
89
removeUnusedAttrs: [
90
90
newRegExp('custom-test-id') // Remove `custom-test-id` attributes if they not used in style tags
91
91
]
92
-
}
92
+
};
93
93
```
94
94
95
95
96
96
97
-
# License
97
+
## Performance
98
+
*TODO: Find some emails, add them to a the project, then minify and list here. Welcome to submit a PR*
99
+
100
+
| Email | Original Size | Minified Size | Elapsed time |
0 commit comments