Miss any of our Open RFC calls?Watch the recordings here! »

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>'
  });

Install

npm i posthtml-minifier

DownloadsWeekly Downloads

326

Version

0.1.0

License

ISC

Last publish

Collaborators

  • avatar