Lines Matching refs:mangle

42     uglifyjs --compress --mangle -- input.js
63 -m, --mangle [options] Mangle names/specify mangler options:
65 --mangle-props [options] Mangle properties/specify mangler options:
71 `keep_quoted` Only mangle unquoted properties.
72 `regex` Only mangle matched property names.
116 for `compress`, `mangle` and `output` options.
118 --keep-fargs Do not mangle/drop function arguments.
119 --keep-fnames Do not mangle/drop function names. Useful for
141 --toplevel Compress and/or mangle variables in top level scope.
144 for `mangle` and `output` options.
150 for `compress`, `mangle` and `output` options.
190 The above will compress and mangle `file1.js` and `file2.js`, will drop the
224 ## CLI mangle options
226 To enable the mangler you need to pass `--mangle` (`-m`). The following
229 - `eval` (default: `false`) — mangle names visible in scopes where `eval` or
234 `--mangle reserved` — pass a comma-separated list of names. For example:
240 ### CLI mangling property names (`--mangle-props`)
244 `--mangle-props` to enable it. It will mangle all properties in the
263 $ uglifyjs example.js -c -m --mangle-props
270 $ uglifyjs example.js -c -m --mangle-props reserved=[foo_,bar_]
277 $ uglifyjs example.js -c -m --mangle-props regex=/_$/
283 Combining mangle properties options:
285 $ uglifyjs example.js -c -m --mangle-props regex=/_$/,reserved=[bar_]
292 default (`--mangle-props builtins` to override).
296 `--mangle-props domprops` to disable this feature.
299 mangled. For example, `--mangle-props regex=/^_/` will only mangle property
310 $ uglifyjs file1.js file2.js --mangle-props --name-cache /tmp/cache.json -o part1.js
311 $ uglifyjs file3.js file4.js --mangle-props --name-cache /tmp/cache.json -o part2.js
320 ### Mangling unquoted names (`--mangle-props keep_quoted`)
336 $ uglifyjs stuff.js --mangle-props keep_quoted -c -m
346 $ uglifyjs stuff.js --mangle-props keep_quoted -c -m -O keep_quoted_props
354 You can also pass `--mangle-props debug` in order to mangle property names
356 would mangle to `o._$foo$_` with this option. This allows property mangling
361 $ uglifyjs stuff.js --mangle-props debug -c -m
367 You can also pass a custom suffix using `--mangle-props debug=XYZ`. This would then
368 mangle `o.foo` to `o._$foo$XYZ_`. You can change this each time you compile a
386 and [`mangle`](#mangle-options). Example:
422 mangle: {
443 mangle: {
527 - `mangle` (default: `true`) — pass `false` to skip mangling names, or pass
528 an object to specify [mangle options](#mangle-options) (see below).
530 - `mangle.properties` (default: `false`) — a subcategory of the mangle option.
531 Pass an object to specify custom [mangle property options](#mangle-properties-options).
575 mangle: {
576 // mangle options
579 // mangle property options
712 various `compress` and `mangle` optimizations.
719 works best with `toplevel` and `mangle` enabled, alongside with `compress` option
778 are also under `mangle.reserved` to avoid mangling.
835 - `unsafe_Function` (default: `false`) — compress and mangle `Function(args, code)`
861 - `eval` (default: `false`) — Pass `true` to mangle names visible in scopes
867 - `toplevel` (default: `false`) — Pass `true` to mangle names declared in the
885 UglifyJS.minify(code, { mangle: { reserved: ['firstLongName'] } }).code;
888 UglifyJS.minify(code, { mangle: { toplevel: true } }).code;
906 - `keep_quoted` (default: `false`) — Only mangle unquoted property names.
908 - `regex` (default: `null`) — Pass a RegExp literal to only mangle property
911 - `reserved` (default: `[]`) — Do not mangle property names listed in the
1129 mangle: false,
1139 // example: accept native Uglify AST input and then compress and mangle
1144 mangle: {},
1171 the AST in JSON on the standard output. To use UglifyJS to mangle and
1203 | uglify-js@3.13.0 mangle=false, compress=false | 363,988 | 95,695 | 0.56 |
1204 | uglify-js@3.13.0 mangle=true, compress=false | 253,305 | 81,281 | 0.99 |
1205 | uglify-js@3.13.0 mangle=true, compress=true | 244,436 | 79,854 | 5.30 |
1213 UglifyJS.minify(code, { compress: false, mangle: true });
1222 disable the Uglify `compress` option and just use `mangle`.
1278 // "FAIL" after compress and/or mangle