Minifier for (currently) css, js, html and json
Features:
- lightweight
- fast (minify tailwind faster than ⚡)
- minimalist
- zero dependencies
- low (memory) footprint (in-string minification)
- multi threading (native binary)
- cross-platform
Native Binary Example Usage:
mantis-minify --dir assets/css/min/ --css assets/css/*.css
mantis-minify --output-path assets/bundled.min.js --js *.js
mantis-minify --html index.html
JS/WASM Example Usage:
node mantis-minify.js --output-path /pwd/bundled.min.css --css /pwd/*.css
node mantis-minify.js --js /pwd/*.js > bundled.min.js
node mantis-minify.js --html /pwd/index.html
Note: To use mantis-minify.js
you will also need mantis-minify.wasm
.
Also see - mantis-minify --help
Mantis is a high-performance unopinionated framework for building the 🕸️ (under development)
Copyright (c) 2022-present Nicholas Ham.
Website: soon