JSPM

  • Created
  • Published
  • Downloads 2921990
  • Score
    100M100P100Q244094F

HTML minifier with lint-like capabilities.

Package Exports

  • html-minifier
  • html-minifier/package.json
  • html-minifier/src/htmllint
  • html-minifier/src/htmlparser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (html-minifier) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

HTMLMinifier is a Javascript-based HTML minifier (duh), with lint-like capabilities.

Installing with npm:

npm install html-minifier

See corresponding blog post for all the gory details of how it works, description of each option, testing results and conclusions.

Test suite is available online.