
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
minify-all-cli
Advanced tools
Minify All JS, CSS and HTML files in a folder by using UglifyJS, CSSNano and HTMLMinifier with an option to gzip all the files as well.
Minify All JS, CSS and HTML files in a folder by using UglifyJS, CSSNano and HTMLMinifier with an option to gzip all the files as well.
Package also supports processCount to set maximum degree of parallelism.
npm install -g minify-all-cli
minify-all-cli -s [source folder] -d [destination folder] [options]
Usage: -s <source> -d <destination>
Options:
--help Show help [boolean]
--version Show version number [boolean]
-j, --skipJS Should minify JavaScript the file or skip it? [boolean]
-c, --skipCSS Should minify CSS the file or skip it? [boolean]
-h, --skipHTML Should minify HTML the file or skip it? [boolean]
-g, --doGzip Should gzip the file or skip it? [boolean]
-x, --jsCompressor Which JavaScript mangler/compressor to use for
minification? Default: uglifyjs [string]
-m, --skipFileMasks Partial Filder Path to skip minification [array]
-e, --skipFileExtensions File Extensions to skip it over [array]
-i, --ignoreFileMasks Partial Filder Path to ignore minification and
copy to destination [array]
-f, --configFile Specifies a json configuration file for the
UglifyJS/terser, CSSNano and HTML Minifier
module [string]
-l, --logLevel Set log level to print warn, log, error, fatal
messages [string]
-p, --processCount Specifies process count to set maximum degree
of parallelism [number]
npx minify-all-cli \
-s "/home/ubuntu/source" -d "/home/ubuntu/compressed" \
--skipFileExtensions=.mp3 --skipFileExtensions=.mp4 \
--logLevel=warn
node . \
-s "./tests/asserts" -d "./tests/asserts_compressed" \
--skipFileExtensions=.mp3 --skipFileExtensions=.mp4 \
--logLevel=info
Please see the license file for more information.
FAQs
Minify All JS, CSS and HTML files in a folder by using UglifyJS, CSSNano and HTMLMinifier with an option to gzip all the files as well.
The npm package minify-all-cli receives a total of 39,198 weekly downloads. As such, minify-all-cli popularity was classified as popular.
We found that minify-all-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.