A minifier for JS, CSS, HTML, and images (including base64 encoding for images in CSS), extended from the original 'minify' package. Version 0.2.1 is the current stable release, last updated in 2012. It relies on UglifyJS, clean-css, html-minifier, and css-b64-images as backend tools, which must be installed separately. Primarily designed for Node.js >=0.4.0, with both CLI and programmatic API. Compared to modern alternatives (e.g., terser, cssnano, html-minifier-terser), it is outdated and lacks active maintenance.
npm install ekit-minifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of the minify.optimize API to minify JS, CSS, HTML, and optionally convert images to base64.
Migrate to modern toolchains like esbuild, terser, cssnano, or html-minifier-terser.
Run 'npm install uglify-js clean-css html-minifier css-b64-images' before using ekit-minify.
Use callback(chunk) instead of callback(err, chunk).
Avoid relying on MinFolder and specify custom output paths.
Run 'npm install uglify-js clean-css html-minifier css-b64-images'.
Ensure options object includes a callback function, e.g., { callback: (chunk) => { ... } }.Use 'import minify from 'minify'' (for ESM) or 'const minify = require('minify')' (for CJS).