Grunt plugin to minify HTML using html-minifier. Current stable version is 3.1.0 (released 2019-04-01), updated to html-minifier v4.0.0. Release cadence is low (2-3 years between major versions). Key differentiator: deeply integrated with Grunt build system, leverages battle-tested html-minifier with full options passthrough. Minimal overhead – just configure files and options. Alternatives include gulp-htmlmin or direct use of html-minifier. Requires Node.js >= 6.
npm install grunt-contrib-htmlminNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, configuration with html-minifier options, and registration for the htmlmin task.
Upgrade to Node.js >= 6.
Refer to html-minifier documentation for option details.
Migrate to a modern build tool if possible.
Add grunt.loadNpmTasks('grunt-contrib-htmlmin'); to Gruntfile.Check file paths and html-minifier options. Use grunt --force to temporarily bypass.