Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reptar/reptar-html-minifier


https://github.com/reptar/reptar-html-minifier

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# reptar-html-minifier

A Reptar plugin for [html-minifier](https://github.com/kangax/html-minifier).

### Installation

Add to your `reptar.config.js` file.

```
const reptarHtmlMinifier = require('reptar-html-minifier');

module.exports = {
lifecycle: {
didBuild: reptarHtmlMinifier({
collapseBooleanAttributes: true,
collapseWhitespace: true,
removeAttributeQuotes: true,
removeComments: true,
removeEmptyAttributes: true,
removeRedundantAttributes: true
}),
},
};
```