Skip to content

reptar/reptar-html-minifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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