Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Rebelmail/posthtml-minifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

posthtml-minifier

Build Status Coverage Status npm version Dependency Status devDependency 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>'
  });

About

PostHTML plugin that wraps HTMLMinifier

Resources

License

Stars

Watchers

Forks

Packages

No packages published