

keep-classnames Do not mangle/drop class names. ie8 Support non-standard Internet Explorer 8.Įquivalent to setting `ie8: true` in `minify()`įor `compress`, `mangle` and `format` options.īy default Terser will not try to be IE-proof. e, -enclose ] Embed output in a big function with configurable ecma Specify ECMAScript release: 5, 2015, 2016, etc.

config-file Read `minify()` options from JSON file. Kept when compression is on, because of deadĬode removal or cascading statements into Note that currently not *all* comments can be a valid JS RegExp like `/foo/` or `/^!/` to Byĭefault this works like Google Closure, keeping comments Preserve copyright comments in the output. `spidermonkey` to write Terser or SpiderMonkey AST o, -output Output file path (default STDOUT). `wrap_func_args` Wrap function arguments in parenthesis. `preamble` Preamble to prepend to the output. `regex` Only mangle matched property names. `keep_quoted` Only mangle unquoted properties, quoted `builtins` Mangle property names that overlaps mangle-props Mangle properties/specify mangler options: `reserved` List of names that should not be mangled. m, -mangle Mangle names/specify mangler options:

`pure_funcs` List of functions that can be safely c, -compress Enable compressor/specify compressor options: `spidermonkey` Assume input files are SpiderMonkey `expression` Parse a single expression, rather than `bare_returns` Allow return outside of functions. `-help options` for details on available options.
