Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Shrink HTML produced by EJS templates

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 README.md
Octocat-spinner-32 npm-debug.log
Octocat-spinner-32 package.json
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.

Something went wrong with that request. Please try again.