ejs-shrink

Monkey-patches EJS to remove comments and extraneous whitespace before parsing

npm install ejs-shrink
7 downloads in the last week
22 downloads in the last month

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
npm loves you