posthtml-minifier

0.1.0 • Public • Published

posthtml-minifier

Build Status Coverage Status

PostHTML plugin that wraps HTMLMinifier.

Usage

var posthtml = require('posthtml');
var minifier = require('posthtml-minifier');
 
posthtml()
  .use(minifier({ removeComments: true }))
  .process('<html><body><!-- a comment --></body></html>')
  .then(function(result) {
    console.log(result.html); //=> '<html><body></body></html>'
  });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    405
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    405

Package Sidebar

Install

npm i posthtml-minifier

Weekly Downloads

405

Version

0.1.0

License

ISC

Last publish

Collaborators

  • devinus