Registry / devops / fis3-optimizer-dfy-html-minifier

fis3-optimizer-dfy-html-minifier

JSON →
library1.0.1jsnpmunverified

A FIS3 plugin for minifying HTML files, forked from fis-optimizer-html-minifier and patched to fix two issues: compression failures with Vue.js shorthand attribute syntax and backend template syntax. Current stable version is 1.0.1, with no known update cadence. Unlike the official plugin, this fork addresses specific Vue and template compatibility. Low maintenance; primarily a patch release.

npm install fis3-optimizer-dfy-html-minifier
INSTALL
IMPORT
SIG · FIS3-OPTIMIZER-DFY
F
fis3-optimizer-dfy-html-minifier
devopsjavascriptv1.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
fis.match('**.html', { optimizer: fis.plugin('dfy-html-minifier', { ... }) })
require('fis3-optimizer-dfy-html-minifier')
This is a FIS3 plugin, not a standalone module. Use fis.plugin() in fis-conf.js.

Shows installation and configuration of the HTML minifier plugin in a FIS3 project.

// Install globally or locally npm install -g fis3-optimizer-dfy-html-minifie // fis-conf.js fis.match('**.html', { optimizer: fis.plugin('dfy-html-minifier', { removeComments: true, collapseWhitespace: true, conservativeCollapse: true, removeAttributeQuotes: true, minifyJS: true, minifyCSS: true }) });
Debug
Known issues
gotchaPackage name contains 'html-minifie' (missing 'r' in minifier) but is not the official one.
fix
Verify you intend to use this fork; the official plugin is 'fis-optimizer-html-minifier'.
affects: >=1.0.0
breakingOnly compatible with FIS3, not FIS or FIS2.
fix
Use FIS3 as the build tool.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'fis3-optimizer-dfy-html-minifier'
Plugin not installed in the project or globally.
fix
Run 'npm install fis3-optimizer-dfy-html-minifie' in the project directory or install globally with '-g'.
fis.plugin is not a function
Using this plugin outside of a FIS3 configuration file or without FIS3 loaded.
fix
Ensure you are using this in fis-conf.js and FIS3 is properly installed.
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fis3-optimizer-dfy-html-minifier — npm install fis3-optimizer-dfy-html-minifier · libregistry