Naturally Pacifist Marsupials
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

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

96

version

0.1.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability