#swc #minify #js #input-file #wrapper #binary #done

app swc-minify

Simple binary wrapper around SWC to minify JS files. No custom config supported yet - just specify input file and it's done.

2 releases

0.1.1 Feb 17, 2024
0.1.0 Feb 17, 2024

#300 in Compression

Download history 3/week @ 2024-03-22 71/week @ 2024-03-29 65/week @ 2024-06-07 10/week @ 2024-06-14

75 downloads per month

MIT license

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

~24–33MB
~581K SLoC