Component to be added at "core" injection to minify html content.

By @mantradev

Install with:

$ mantrad download-component htmlminifier@1.0.0

Or install last version with:

$ mantrad download-component htmlminifier

htmlminifier Mantra component

Component tha exposes an API to minify html content.

It exposes a single API method to perfom this task.

This API can be used as injection (propery core.minifyhtmlapi) and indicating it at core properties of Mantra to activate minifying of html.

This component is a Mantra wrapper for html-minifier module.

API exposed by htmlminifier

async Mantra.api.htmlminifier.minify( Mantra, htmlContent )

Returns minified the html content indicated as parameter.