A plugin for the Makestatic static site compiler that optimizes HTML files using html-minifier. Current stable version is 1.0.28. It is part of the Makestatic ecosystem, providing compression and minification during the build process. Key differentiators: integrates seamlessly with Makestatic's file pipeline; allows per-file and global options for html-minifier. Release cadence is low; last update was in 2017.
npm install makestatic-optimize-htmlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates using OptimizeHtml.minifier to minify an HTML string. Uses Promises.
Refer to html-minifier documentation for valid options.
Consider using a more actively maintained alternative like html-minifier-terser directly.
Ensure file.content is a string before calling .sources.
Use default import: import OptimizeHtml from 'makestatic-optimize-html'
Run 'npm install makestatic-optimize-html' and check the import path.