2 releases
0.1.1 | Feb 17, 2024 |
---|---|
0.1.0 | Feb 17, 2024 |
#130 in #swc
18KB
swc-minify
Simple binary wrapper around SWC to minify JS files. No custom config supported yet - just specify input file and it's done.
Motivation
I created this wrapper mostly because swc minify
from swc_cli
crate says "Minify command is not yet implemented".
Install
cargo install swc-minify
Usage
swc-minify main.js > main.min.js
Notes
Compress and mangle options are used.
Dependencies
~30–42MB
~751K SLoC