Registry / devops / gobble-html-minifier

gobble-html-minifier

JSON →
library0.1.1jsnpmunverified

A gobble plugin that wraps html-minifier to minify HTML files during the gobble build process. Current stable version is 0.1.1, with no recent updates. It supports three presets (minimal, safe, all) that correspond to html-minifier's presets, and allows overriding individual options. As a wrapper, it requires gobble to be installed separately and delegates all minification to the html-minifier library. This plugin is a thin integration layer and has limited adoption.

npm install gobble-html-minifier
INSTALL
IMPORT
SIG · GOBBLE-HTML-MINIFI
G
gobble-html-minifier
devopsjavascriptv0.1.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.

gobble-plugin
No imported symbol; the plugin is used by name in gobblefile: gobble('src').transform('html-minifier', options)
Cannot be required directly; it's a gobble plugin.
The plugin is not imported as a module; it's invoked via gobble's .transform() with the plugin name string.

Shows basic usage of gobble-html-minifier in a gobblefile: import gobble, then call .transform with plugin name and options including preset.

var gobble = require('gobble'); module.exports = gobble('src').transform('html-minifier', { preset: 'safe', removeComments: true, collapseWhitespace: true });
Debug
Known issues
breakingPreset option values must be exactly 'minimal', 'safe', or 'all'; other values will be ignored completely, leaving options unaffected.
fix
Use only the three supported preset strings.
affects: >=0.1.0
Errors
Common errors & fixes
Error: Cannot find module 'gobble-html-minifier'
Plugin not installed; gobble does not auto-install plugins.
fix
npm install --save-dev gobble-html-minifier
TypeError: gobble(...).transform is not a function
Gobble version incompatibility; very old gobble versions might not have transform method.
fix
Update gobble to a version that supports .transform()
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies
gobblerequiredPeer dependency: this plugin is designed to be used with the gobble build system.
html-minifierrequiredRuntime dependency: plugin wraps html-minifier for actual HTML minification.
Agent activity
4 hits · last 30 days
node
4
Resources
gobble-html-minifier — npm install gobble-html-minifier · libregistry