Minify All CLI is a Node.js command-line tool that minifies JavaScript, CSS, and HTML files in bulk using UglifyJS (or terser), CSSNano, and HTMLMinifier, with optional gzip compression. Current stable version is 1.0.13, with infrequent updates. It supports parallelism via processCount and allows skipping files by extension or path mask. Differentiators include a unified CLI for all file types and config file support for minifier options, though it is less actively maintained and has limited documentation compared to alternatives like gulp or webpack plugins.
npm install minify-all-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minify JS, CSS, HTML from ./public to ./dist using terser, 4 parallel processes, skipping source maps, with info logging.
Use default or set -p 1 for small projects.
Use -x terser option to avoid UglifyJS deprecation.
Use an intermediate build tool if flat output is needed.
Test on a copy of source folder first.
Run `npm install -g minify-all-cli` which includes dependencies.
Ensure config JSON matches the tool's expected format; check UglifyJS/terser docs.
Use absolute path and quote paths with spaces: -s "./my folder"