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

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

#127 in Compression

Download history 179/week @ 2024-02-16 40/week @ 2024-02-23 11/week @ 2024-03-01 3/week @ 2024-03-22 71/week @ 2024-03-29

74 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

~23–33MB
~589K SLoC