{"library":"metalsmith-html-minifier","type":"library","category":null,"description":"A Metalsmith plugin that minifies HTML files using kangax/html-minifier. Current stable version is 4.0.1, compatible with Node.js >=8. It offers built-in defaults that aggressively optimize HTML (e.g. collapsing whitespace, removing comments, removing attribute quotes) which may break conditional comments or whitespace-sensitive layouts. Unlike generic HTML minifiers, it integrates directly into the Metalsmith build pipeline, supporting glob patterns and custom minifier options. Release cadence is low; no major updates since 2019.","language":"javascript","status":"maintenance","version":"4.0.1","tags":["javascript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install metalsmith-html-minifier","imports":["const htmlMinifier = require('metalsmith-html-minifier');","Metalsmith(__dirname).use(htmlMinifier());","htmlMinifier({ pattern: '**/*.html', minifierOptions: { removeComments: false } })"]},{"cmd":"yarn add metalsmith-html-minifier","imports":[]},{"cmd":"pnpm add metalsmith-html-minifier","imports":[]}],"homepage":"https://github.com/whymarrh/metalsmith-html-minifier","github":"git://github.com/whymarrh/metalsmith-html-minifier","docs":null,"changelog":null,"pypi":null,"npm":"metalsmith-html-minifier","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}