keronur.blogg.se

Npm build webpack dont uglyfy
Npm build webpack dont uglyfy






npm build webpack dont uglyfy

`base` Path to compute relative paths from input files. source-map Enable source map/specify source map options: self Build UglifyJS as a library (implies -wrap UglifyJS) name-cache File to hold mangled name mappings. module Process input as ES module (implies -toplevel)

npm build webpack dont uglyfy

keep-fnames Do not mangle/drop function names. keep-fargs Do not mangle/drop function arguments. ie Support non-standard Internet Explorer.Įquivalent to setting `ie: true` in `minify()`įor `compress`, `mangle` and `output` options.īy default UglifyJS will not try to be IE-proof. e, -enclose ] Embed everything in a big function, with configurable 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 JSDoc-style comments that contain You can optionally pass one of the Byĭefault this works like Google Closure, keeping comments Preserve copyright comments in the output. no-annotations Ignore and discard comment annotations. annotations Process and preserve comment or `/*#_PURE_*/`) `spidermonkey` to write UglifyJS or SpiderMonkey AST o, -output Output file path (default STDOUT). O, -output-opts Specify output options (`beautify` disabled by default). `preamble` Preamble to prepend to the output. `beautify` Enabled with `-beautify` by default. b, -beautify Beautify output/specify output options: `regex` Only mangle matched property names. `keep_quoted` Only mangle unquoted properties. `domprops` Mangle property names that overlaps `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:

npm build webpack dont uglyfy

`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.








Npm build webpack dont uglyfy