Registry / devops / html-minifyify

html-minifyify

JSON →
library1.0.0jsnpmunverified

Browserify transform to inline calls to html-minifier during bundling. Version 1.0.0 (latest, no recent updates). Designed for older Browserify-based build pipelines; non-essential transform. Limited documentation and no maintenance since 2014. Alternative: use webpack with html-loader or direct html-minifier integration.

npm install html-minifyify
INSTALL
IMPORT
SIG · HTML-MINIFYIFY
H
html-minifyify
devopsjavascriptv1.0.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.

transform
var htmlMinifyify = require('html-minifyify'); browserify().transform(htmlMinifyify)
import htmlMinifyify from 'html-minifyify' // ESM not supported
CommonJS only; used as Browserify transform, not imported directly in app code.
default
const plugin = require('html-minifyify')
require('html-minifyify').default
Default export is the transform function.

Shows how to add html-minifyify as a Browserify transform with optional html-minifier options.

var browserify = require('browserify'); var htmlMinifyify = require('html-minifyify'); var b = browserify('./main.js'); b.transform(htmlMinifyify, {htmlMinifierOptions: {removeComments: true}}); b.bundle().pipe(process.stdout);
Debug
Known issues
deprecatedPackage is unmaintained since 2014.
fix
Consider using webpack with html-loader or direct html-minifier.
affects: *
gotchaRequires html-minifier as a peer dependency; must be installed separately.
fix
Run 'npm install html-minifier'.
affects: *
gotchaOptions object must use 'htmlMinifierOptions' key; html-minifier options are nested.
fix
Pass options as {htmlMinifierOptions: { ... }}.
affects: *
Errors
Common errors & fixes
Module not found: Can't resolve 'html-minifier'
Missing peer dependency html-minifier.
fix
npm install html-minifier
TypeError: htmlMinifyify is not a function
Attempting to import as ESM or using wrong import pattern.
fix
Use require('html-minifyify') and pass directly to .transform()
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
html-minifierrequiredpeer dependency for HTML minification
Agent activity
4 hits · last 30 days
node
4
Resources