Registry / testing / fis-postpackager-htmlmin

fis-postpackager-htmlmin

JSON →
library0.1.5jsnpmunverified

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.

npm install fis-postpackager-htmlmin
INSTALL
IMPORT
SIG · FIS-POSTPACKAGER-H
F
fis-postpackager-htmlmin
testingjavascriptv0.1.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin usage
npm install fis-postpackager-htmlmin -g
npm install --save-dev fis-postpackager-htmlmin (should be global install)
FIS plugins are typically installed globally.
config merge
fis.config.merge({ modules: { postpackager: ['htmlmin'] } });
fis.config.set('modules.postpackager', 'htmlmin') (wrong method)
Must use merge, not set.
options override
fis.config.merge({ modules: { postpackager: 'htmlmin' }, settings: { postpackager: { htmlmin: { removeComments: false } } } });
fis.config.merge({ postpackager: { htmlmin: { removeComments: false } } }) (wrong nesting)
Options go under settings.postpackager.htmlmin.

Shows global install, configuration with options, and build command for HTML minification in FIS.

// Install globally npm install fis-postpackager-htmlmin -g // fis-conf.js fis.config.merge({ modules: { postpackager: 'htmlmin' }, settings: { postpackager: { htmlmin: { removeComments: true, collapseWhitespace: true, minifyJS: true } } } }); // Run build fis release -o
Debug
Known issues
deprecatedFIS and its plugins are abandoned. Modern projects should use webpack, rollup, or vite.
fix
Migrate to a modern build system.
affects: >=0.0.0
breakingPlugin only works with fis release -o (optimization mode). Without -o flag, no minification occurs.
fix
Ensure you run fis release -o, not just fis release.
affects: >=0.0.0
gotchaOptions must be nested under settings.postpackager.htmlmin, not directly in modules.
fix
Use correct config structure: settings > postpackager > htmlmin.
affects: >=0.0.0
deprecatedRequires global install (-g) due to FIS plugin mechanism, not local install.
fix
npm install fis-postpackager-htmlmin -g
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'fis-postpackager-htmlmin'
Plugin not installed or not installed globally
fix
npm install -g fis-postpackager-htmlmin
TypeError: Cannot read property 'htmlmin' of undefined
Options incorrectly placed in config
fix
Use: fis.config.merge({ settings: { postpackager: { htmlmin: { ... } } } })
Upgrade
Version history
0.1.5latest on npm
Audit
Dependencies
html-minifierrequiredcore minification logic
fisrequiredruntime dependency
Agent activity
2 hits · last 30 days
node
2
Resources
fis-postpackager-htmlmin — npm install fis-postpackager-htmlmin · libregistry