{"id":40887,"library":"ember-cli-html-minifier","title":"ember-cli-html-minifier","description":"Ember addon that uses html-minifier to minify HTML files (e.g., index.html) and inline JS/CSS during production builds. Version 1.1.0 is the latest stable release. This addon automatically activates on production builds but allows manual configuration via Brocfile.js. Differentiators: seamless integration with Ember CLI, sensible default minifier options (collapseWhitespace, removeComments, minifyJS, minifyCSS), and support for custom minifier options. Note: the underlying html-minifier library is deprecated in favor of html-minifier-terser, and this addon may not be actively maintained.","status":"maintenance","version":"1.1.0","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/gpoitch/ember-cli-html-minifier","tags":["javascript","ember-addon","minify","compress","html","html-minifier"],"install":[{"cmd":"npm install ember-cli-html-minifier","lang":"bash","label":"npm"},{"cmd":"yarn add ember-cli-html-minifier","lang":"bash","label":"yarn"},{"cmd":"pnpm add ember-cli-html-minifier","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This addon does not export any symbols; configuration is done via EmberApp options. No import needed.","wrong":"// Wrong: importing a function from the addon\nimport htmlMinifier from 'ember-cli-html-minifier';","symbol":"default export (EmberApp configuration)","correct":"// In Brocfile.js\nvar app = new EmberApp({\n  minifyHTML: {\n    enabled: true,\n    htmlFiles: ['index.html'],\n    minifierOptions: { ... }\n  }\n});"}],"quickstart":{"code":"npm install ember-cli-html-minifier --save-dev\n# Then in Brocfile.js:\nvar app = new EmberApp({\n  minifyHTML: {\n    enabled: true,\n    htmlFiles: ['index.html'],\n    minifierOptions: {\n      collapseWhitespace: true,\n      removeComments: true,\n      minifyJS: true,\n      minifyCSS: true\n    }\n  }\n});","lang":"javascript","description":"Install and configure ember-cli-html-minifier for production HTML minification with default options."},"warnings":[{"fix":"Switch to a different addon that uses html-minifier-terser, or configure your build pipeline directly.","message":"The html-minifier library used under the hood is deprecated; consider using html-minifier-terser instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Ensure minifyHTML.enabled is true (or rely on default production-only behavior).","message":"Default minifier options only apply if the addon is enabled. If minifyHTML.enabled is false or not set, no minification occurs.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use exact key: minifyHTML in Brocfile.js.","message":"Configuration key is 'minifyHTML' (camelCase) not 'minifyHtml' or others.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'1.1.0':26 'activ':35,87 'addon':7,33,83,92 'allow':40 'automat':34 'brocfile.js':44 'build':24,38 'cli':3,50 'collapsewhitespac':55 'compress':94 'configur':42 'custom':62 'default':52 'deprec':73 'differenti':45 'e.g':17 'ember':2,6,49,91 'ember-addon':90 'ember-cli-html-minifi':1 'favor':75 'file':16 'html':4,11,15,69,78,95,97 'html-minifi':10,68,96 'html-minifier-ters':77 'index.html':18 'inlin':20 'integr':47 'javascript':89 'js/css':21 'latest':29 'librari':71 'maintain':88 'manual':41 'may':84 'minifi':5,12,14,53,63,70,79,93,98 'minifycss':58 'minifyj':57 'note':65 'option':54,64 'product':23,37 'releas':31 'removecom':56 'seamless':46 'sensibl':51 'stabl':30 'support':60 'terser':80 'under':67 'use':9 'version':25 'via':43","created_at":"2026-06-04T18:49:44.443061+00:00","updated_at":"2026-06-04T18:49:44.443061+00:00","problems":[{"fix":"Run: npm install ember-cli-html-minifier --save-dev","cause":"The addon is not installed or not saved in package.json.","error":"Error: Could not find module `ember-cli-html-minifier`"},{"fix":"Ensure the addon is installed and listed in package.json in the 'devDependencies' section.","cause":"The configuration key 'minifyHTML' is being used but the addon is not properly detected by Ember CLI.","error":"Unrecognized option: minifyHTML"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/gpoitch/ember-cli-html-minifier#readme","github":"ssh://git@github.com/gpoitch/ember-cli-html-minifier","docs":null,"changelog":null,"pypi":null,"npm":"ember-cli-html-minifier","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}