Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 520 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 520 Bytes

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
    }),
  },
};