Registry / testing / fis3-deploy-html-minifier

fis3-deploy-html-minifier

JSON →
library1.1.0jsnpmunverified

A FIS3 deploy plugin that compresses HTML files using html-minifier during the deployment stage. Version 1.1.0 is the latest stable release, with no recent updates. It uses html-minifier under the hood, allowing configuration of minification options such as removing comments, collapsing whitespace, and minifying inline JS/CSS. It supports file matching via glob patterns and default behavior for all HTML-like files.

npm install fis3-deploy-html-minifier
INSTALL
IMPORT
SIG · FIS3-DEPLOY-HTML-M
F
fis3-deploy-html-minifier
testingjavascriptv1.1.0
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.

default
module.exports = fis.plugin('html-minifier', {});
import fis3DeployHtmlMinifier from 'fis3-deploy-html-minifier';
This is a FIS3 plugin and is used via fis.plugin, not imported directly.

Shows how to configure the plugin in a FIS3 project to minify HTML during deployment.

// In fis-conf.js: fis.match('**', { deploy: [ fis.plugin('html-minifier', { removeComments: true, collapseWhitespace: true, minifyJS: true, minifyCSS: true }) ] });
Debug
Known issues
gotchaPlugin name mismatch: use 'html-minifier' not 'fis3-deploy-html-minifier' in fis.plugin().
fix
Use fis.plugin('html-minifier', {...}) instead of the package name.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'html-minifier'
Missing dependency html-minifier is not installed.
fix
Install it: npm install html-minifier --save-dev
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies
html-minifierrequiredUsed to minify HTML content; required at runtime.
fis3requiredFIS3 build tool is required to use this plugin; it's a peer dependency.
Agent activity
2 hits · last 30 days
node
2
Resources
fis3-deploy-html-minifier — npm install fis3-deploy-html-minifier · libregistry