reptar-html-minifier

2.0.0 • Public • Published

reptar-html-minifier

A Reptar plugin for 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
    }),
  },
};

Readme

Keywords

none

Package Sidebar

Install

npm i reptar-html-minifier

Weekly Downloads

7

Version

2.0.0

License

MIT

Unpacked Size

1.94 kB

Total Files

3

Last publish

Collaborators

  • hswolff