A Handlebars helper for minifying HTML using html-minifier. Version 0.1.3 is the latest stable release. This is an older package (last updated ~2014) with no active development. It depends on and extends js-beautify. Options can be set via hash parameters, an options object, or Gruntfile Assemble task config. This package is part of the 'helpers' collection which provides alternative, more specific helpers not included in the main handlebars-helpers project.
npm install handlebars-helper-minifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Registers the minify helper and uses it to minify a partial's content.
Use a more modern Handlebars helper or inline html-minifier logic.
Refer to html-minifier documentation for actual options.
Use a helper compatible with your Handlebars version or inline the minification.
Use Handlebars.registerHelper('minify', require('handlebars-helper-minify'));Ensure Handlebars is required: const Handlebars = require('handlebars');Downgrade Handlebars to v4.x or use a different minify helper.