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

/reptar-html-minifier/

    Package Sidebar

    Install

    npm i reptar-html-minifier

    Weekly Downloads

    1

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    1.94 kB

    Total Files

    3

    Last publish

    Collaborators

    • hswolff