Registry / devops / gitbook-plugin-minifier

gitbook-plugin-minifier

JSON →
library0.0.1jsnpmunverified

A GitBook plugin that minifies HTML, CSS, and JavaScript output after build. Version 0.0.1, last updated several years ago. Uses html-minifier, clean-css, and UglifyJS. Differentiated by being a simple, all-in-one minifier plugin for GitBook, but it is now deprecated as GitBook has evolved. No longer actively maintained.

npm install gitbook-plugin-minifier
INSTALL
IMPORT
SIG · GITBOOK-PLUGIN-MIN
G
gitbook-plugin-minifier
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
// Add to book.json: {"plugins": ["minifier"]}
This is a GitBook plugin, not a JavaScript module. Configuration is via book.json.

Minifies HTML, CSS, and JS output in a GitBook project after build.

{ "plugins": ["minifier"], "pluginsConfig": { "minifier": { "html": {}, "css": {}, "js": {} } } }
Debug
Known issues
deprecatedPackage is no longer maintained and may not work with newer GitBook versions.
fix
Consider using alternative minification tools or upgrade to GitBook's built-in minification.
affects: >=0.0.1
gotchaDependencies (html-minifier, clean-css, UglifyJS) may have security vulnerabilities or outdated APIs.
fix
Pin versions or audit separately.
affects: >=0.0.1
Errors
Common errors & fixes
Error: Cannot find module 'html-minifier'
Missing or outdated dependency due to npm install issues.
fix
Run 'npm install' again or add html-minifier explicitly.
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gitbook-plugin-minifier — npm install gitbook-plugin-minifier · libregistry