Shrink HTML produced by EJS templates
JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits ahead of travis4all:master.
Latest commit 49ea7cb Nov 16, 2012 @sechrist sechrist version bump

README.md

Shrinks HTML size down by monkey patching EJS's parse to remove extraneous whitespace and html comments.

Comment removal is regex based, so it may break escaping text spans. It also splits on newline, so if you depend on those you might need to tweak it.

Installing with npm

npm install ejs-shrink

then to use just require('ejs-shrink'); anywhere, it patches the global module.