Unused CSS Removal page is driven by:
email-comb(monorepo) — it removes unused CSS from HTML templates, also, optionally uglifies
html-crush(standalone web app / monorepo) — it minifies the HTML and CSS
string-uglify(monorepo) — it takes an array of class/id names and generates an array of short, unique, uglified replacement names, 1–3 characters-long (at worst, 4)
The Main USP of EmailComb
There are many programs that minify HTML and CSS but EmailComb is unique because:
1) it's non-parsing and therefore accepts HTML mixed with ESP markup or templating languages;
2) it's email template-oriented — for example, it detects Outlook conditionals like
<!--[if !mso]><!-- --> (mind you, second part, the
<!-- -->, looks like an empty HTML comment which our competition might remove)
Features of This Website
- EmailComb, HTMLCrush and their whole component ecosystem is free (MIT licence) and will forever be free.
- There is no back-end here — your input code never leaves your computer. There is no MySQL or PHP, all pages are just static HTML, CSS and JS.
- All dependencies are consumed straight from npm libraries' UMD builds via jsdelivr.net, so they are always the latest.
- UI is deliberately kept simple: panels, options and toggles are deliberately kept under seven.
- This website does not use tracking or cookies or gather your data. All the cookies here come from CloudFlare, they are added automatically and beyond our control.
No Svelte/Vue/React Here
This website uses vanilla JS because it is a three static page website. OK, seven if you count three dark and three light pages plus an interstitial.
It's deliberately simple — all the processing: minificaction, uglification, unused CSS removal and so on, are driven by standalone npm packages and consumed directly from jsdelivr CDN.
Having said that, CodeMirror makes the life easier — it comes with getters, setters and content change listeners. We put it on top of Split.js and tap the npm packages, our API.
Copyright (c) 2015–2019 Roy Revelt and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This website and EmailComb, library of the same name, were created and are maintained by Codsen Ltd.
Please report anything wrong you see on the UI or request new features by emailing [email protected] or tweeting Roy
If you see anything wrong with any of the packages, raise an issue on GitLab, on our monorepository