Registry / devops / fis3-postpackager-htmlmin

fis3-postpackager-htmlmin

JSON →
library0.0.1jsnpmunverified

Minify HTML files in a FIS3 build pipeline using html-minifier. Version 0.0.1 is the latest and only release, no release cadence defined. This plugin is meant to be used with the FIS3 build system, not standalone. It defaults to removing comments, collapsing whitespace, and minifying inline JS. Compared to other minifiers, it integrates tightly with FIS3's module system and is not intended for general use outside of FIS3.

npm install fis3-postpackager-htmlmin
INSTALL
IMPORT
SIG · FIS3-POSTPACKAGER-
F
fis3-postpackager-htmlmin
devopsjavascriptv0.0.1
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 Configuration
fis.config.set('modules.postpackager', ['htmlmin']); fis.config.set('settings.postpackager.htmlmin', {...})
fis.config.merge({ modules: { postpackager: 'htmlmin' } })
Must set modules.postpackager as an array, not a string.
FIS3 API
const fis = require('fis3');
const fis = require('fis');
Use fis3 package, not the older fis.

Shows how to configure and run the HTML minification plugin with FIS3.

// Install globally: npm install fis3-postpackager-htmlmin -g // Inside fis-conf.js: fis.config.set('modules.postpackager', ['htmlmin']); fis.config.set('settings.postpackager.htmlmin', { minifyJS: true, removeComments: true, collapseWhitespace: true }); // Run: fis release -o
Debug
Known issues
gotchaPlugin requires global installation; local npm install may not work.
fix
Install with -g flag: npm install -g fis3-postpackager-htmlmin
affects: >=0.0.1
gotchaConfiguration must be an array for modules.postpackager, not a string.
fix
Use fis.config.set('modules.postpackager', ['htmlmin']) (array brackets)
affects: >=0.0.1
deprecatedfis.config.merge() is deprecated in newer FIS3 versions; use fis.config.set() instead.
fix
Use fis.config.set() for setting configuration.
affects: >=0.0.1
Errors
Common errors & fixes
Error: Cannot find module 'html-minifier'
Missing html-minifier dependency.
fix
npm install html-minifier --save-dev
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies
html-minifierrequiredCore dependency for HTML minification logic
Agent activity
2 hits · last 30 days
node
2
Resources
fis3-postpackager-htmlmin — npm install fis3-postpackager-htmlmin · libregistry