Registry / devops / bigpipe-minifier

bigpipe-minifier

JSON →
library0.1.1jsnpmunverified

Minification plugin for the BigPipe compiler that integrates with uglify-js and clean-css to minify JavaScript and CSS files before they are saved to disk. Version 0.1.1 is a legacy package from the BigPipe ecosystem, last updated in 2015, with no recent releases. It requires peer dependencies and manual configuration of minification tools. Differentiators: lightweight, plugin-based architecture, and option forwarding to underlying minifiers.

npm install bigpipe-minifier
INSTALL
IMPORT
SIG · BIGPIPE-MINIFIER
B
bigpipe-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.

default
const minifier = require('bigpipe-minifier')
import minifier from 'bigpipe-minifier'; // ESM not supported, CJS only
CommonJS only; the package does not expose ESM builds.
minifier
const minifier = require('bigpipe-minifier')
Only import is the default export as a plugin object.

Initializes BigPipe server with the minifier plugin, configuring clean-css for CSS and uglify-js for JS minification with options.

const minifier = require('bigpipe-minifier'); const cleanCSS = require('clean-css'); const uglifyJS = require('uglify-js'); const BigPipe = require('bigpipe'); BigPipe.createServer(8080, { minifier: { css: { name: 'clean-css', tool: cleanCSS }, js: { name: 'uglify-js', tool: uglifyJS, bare_returns: true, screw_ie8: true } }, plugins: [ minifier ] });
Debug
Known issues
gotchaPeer dependencies uglify-js and clean-css are not automatically installed; you must install them manually.
fix
Run npm install bigpipe-minifier uglify-js clean-css --save
affects: >=0.0.0
deprecatedThe package has not been updated since 2015 and is considered abandoned. It may have security vulnerabilities or incompatibilities with modern Node.js.
fix
Consider alternative minification plugins or direct use of uglify-js/clean-css.
affects: >=0.0.0
gotchaThe `minifier` property on server options must contain `css` and `js` objects with `name` and `tool` properties; omitting these causes runtime errors.
fix
Ensure both `css` and `js` objects are provided with correct structure.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'uglify-js'
Missing peer dependency uglify-js
fix
npm install uglify-js
TypeError: minifier is not a function
Using minifier as a function instead of object with plugin interface
fix
Pass minifier as a plugin in the `plugins` array, not as a function.
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies
uglify-jsoptionalJavaScript minification peer dependency
clean-cssoptionalCSS minification peer dependency
Agent activity
12 hits · last 30 days
node
10
Amazon
1
Resources
bigpipe-minifier — npm install bigpipe-minifier · libregistry