Skip to content

HTML minifier

Compare
Choose a tag to compare
@Swaagie Swaagie released this 07 Jul 22:32
· 159 commits to master since this release

Minimize is a HTML minifier based on the node-htmlparser. This depedency will ensure output is solid and correct. Minimize is focussed on HTML5 and will not support older HTML drafts. It is not worth the effort and the web should move forward. Currently, HTML minifier is only usuable server side. Client side minification will be added in a future release.

Features:

  • remove empty attributes
  • strip CDATA from scripts
  • remove comments
  • remove redundant attributes
  • remove arbitrary quotes