Name mangler arithmetic7/5/2023 ![]() ![]() wrap Embed everything in a big function, making the toplevel Compress and/or mangle variables in top level scope. timings Display operations run time on STDERR. `url` If specified, path to the source map to append in `root` Path to the original source to be included in `includeSources` Pass this flag if you want to include `filename` Name and/or location of the output source. JS that was generated from some other originalĬode. `content` Input source map, useful if you're compressing `base` Path to compute relative paths from input files. source-map Enable source map/specify source map options: safari10 Support non-standard Safari 10/11.Įquivalent to setting `safari10: true` in `minify()` name-cache File to hold mangled name mappings. If `compress` or `mangle` isĮnabled then the `toplevel` option will be enabled. keep-fnames Do not mangle/drop function names. 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. If you have files to rename, Name Mangler can get the job done.`-help options` for details on available options.
0 Comments
Leave a Reply. |