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