{"id":41099,"library":"fis-postpackager-htmlmin","title":"fis-postpackager-htmlmin","description":"FIS plugin for minifying HTML using html-minifier. Version 0.1.5, last updated circa 2015. Designed for the now-deprecated Baidu FIS build system. Requires fis globally. Key differentiator: integrates HTML minification into FIS release pipeline, supporting toggleable removal of comments, whitespace, and JS minification. Abandoned; no updates since 2015. Not suitable for modern projects.","status":"abandoned","version":"0.1.5","language":"javascript","source_language":"en","source_url":"https://github.com/babyzone2004/fis-postpackager-htmlmin","tags":["javascript","fis","optimizer","html","compress","minifier","htmlmin","postpackager"],"install":[{"cmd":"npm install fis-postpackager-htmlmin","lang":"bash","label":"npm"},{"cmd":"yarn add fis-postpackager-htmlmin","lang":"bash","label":"yarn"},{"cmd":"pnpm add fis-postpackager-htmlmin","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"core minification logic","package":"html-minifier","optional":false},{"reason":"runtime dependency","package":"fis","optional":false}],"imports":[{"note":"FIS plugins are typically installed globally.","wrong":"npm install --save-dev fis-postpackager-htmlmin (should be global install)","symbol":"plugin usage","correct":"npm install fis-postpackager-htmlmin -g"},{"note":"Must use merge, not set.","wrong":"fis.config.set('modules.postpackager', 'htmlmin') (wrong method)","symbol":"config merge","correct":"fis.config.merge({\n  modules: {\n    postpackager: ['htmlmin']\n  }\n});"},{"note":"Options go under settings.postpackager.htmlmin.","wrong":"fis.config.merge({\n  postpackager: {\n    htmlmin: { removeComments: false }\n  }\n}) (wrong nesting)","symbol":"options override","correct":"fis.config.merge({\n  modules: {\n    postpackager: 'htmlmin'\n  },\n  settings: {\n    postpackager: {\n      htmlmin: {\n        removeComments: false\n      }\n    }\n  }\n});"}],"quickstart":{"code":"// Install globally\nnpm install fis-postpackager-htmlmin -g\n\n// fis-conf.js\nfis.config.merge({\n  modules: {\n    postpackager: 'htmlmin'\n  },\n  settings: {\n    postpackager: {\n      htmlmin: {\n        removeComments: true,\n        collapseWhitespace: true,\n        minifyJS: true\n      }\n    }\n  }\n});\n\n// Run build\nfis release -o","lang":"javascript","description":"Shows global install, configuration with options, and build command for HTML minification in FIS."},"warnings":[{"fix":"Migrate to a modern build system.","message":"FIS and its plugins are abandoned. Modern projects should use webpack, rollup, or vite.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Ensure you run fis release -o, not just fis release.","message":"Plugin only works with fis release -o (optimization mode). Without -o flag, no minification occurs.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Use correct config structure: settings > postpackager > htmlmin.","message":"Options must be nested under settings.postpackager.htmlmin, not directly in modules.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"npm install fis-postpackager-htmlmin -g","message":"Requires global install (-g) due to FIS plugin mechanism, not local install.","severity":"deprecated","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'0.1.5':15 '2015':19,55 'abandon':51 'baidu':26 'build':28 'circa':18 'comment':46 'compress':65 'deprec':25 'design':20 'differenti':34 'fis':2,5,27,31,39,62 'fis-postpackager-htmlmin':1 'global':32 'html':9,12,36,64 'html-minifi':11 'htmlmin':4,67 'integr':35 'javascript':61 'js':49 'key':33 'last':16 'minif':37,50 'minifi':8,13,66 'modern':59 'now-deprec':23 'optim':63 'pipelin':41 'plugin':6 'postpackag':3,68 'project':60 'releas':40 'remov':44 'requir':30 'sinc':54 'suitabl':57 'support':42 'system':29 'toggleabl':43 'updat':17,53 'use':10 'version':14 'whitespac':47","created_at":"2026-06-04T18:50:45.986673+00:00","updated_at":"2026-06-04T18:50:45.986673+00:00","problems":[{"fix":"npm install -g fis-postpackager-htmlmin","cause":"Plugin not installed or not installed globally","error":"Error: Cannot find module 'fis-postpackager-htmlmin'"},{"fix":"Use: fis.config.merge({ settings: { postpackager: { htmlmin: { ... } } } })","cause":"Options incorrectly placed in config","error":"TypeError: Cannot read property 'htmlmin' of undefined"}],"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/babyzone2004/fis-postpackager-htmlmin","github":"https://github.com/babyzone2004/fis-postpackager-htmlmin","docs":null,"changelog":null,"pypi":null,"npm":"fis-postpackager-htmlmin","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"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}}