Terser
Installation
npm i -g terser
Usage
terser [option] <file>
Options:
--comments <all|false>
-c
,--compress
--config-file <file>
--ecma <5|2015|2016|2017|...>
-f, --format, -b, --beautify
--keep-classnames
--keep-fnames
(keep function names)-m
,--mangle reserved=[reserved-words]
--module
(input is an ES6 module)-o
,--output <file>
More at: