uglify-es
=========
A JavaScript parser, mangler/compressor and beautifier toolkit for ES6+.
#### Note:
- **`uglify-es` is API/CLI compatible with `uglify-js@3`.**
- **`uglify-es` is not backwards compatible with `uglify-js@2`.**
Install
-------
First make sure you have installed the latest version of [node.js](http://nodejs.org/)
(You may need to restart your computer after this step).
From NPM for use as a command line app:
npm install uglify-es -g
From NPM for programmatic use:
npm install uglify-es
# Command line usage
uglifyjs [input files] [options]
UglifyJS can take multiple input files. It's recommended that you pass the
input files first, then pass the options. UglifyJS will parse input files
in sequence and apply any compression options. The files are parsed in the
same global scope, that is, a reference from a file to some
variable/function declared in another file will be matched properly.
If no input file is specified, UglifyJS will read from STDIN.
If you wish to pass your options before the input files, separate the two with
a double dash to prevent input files being used as option arguments:
uglifyjs --compress --mangle -- input.js
### Command line options
```
-h, --help Print usage information.
`--help options` for details on available options.
-V, --version Print version number.
-p, --parse <options> Specify parser options:
`acorn` Use Acorn for parsing.
`bare_returns` Allow return outside of functions.
Useful when minifying CommonJS
modules and Userscripts that may
be anonymous function wrapped (IIFE)
by the .user.js engine `caller`.
`expression` Parse a single expression, rather than
a program (for parsing JSON).
`spidermonkey` Assume input files are SpiderMonkey
AST format (as JSON).
-c, --compress [options] Enable compressor/specify compressor options:
`pure_funcs` List of functions that can be safely
removed when their return values are
not used.
-m, --mangle [options] Mangle names/specify mangler options:
`reserved` List of names that should not be mangled.
--mangle-props [options] Mangle properties/specify mangler options:
`builtins` Mangle property names that overlaps
with standard JavaScript globals.
`debug` Add debug prefix and suffix.
`domprops` Mangle property names that overlaps
with DOM properties.
`keep_quoted` Only mangle unquoted properties.
`regex` Only mangle matched property names.
`reserved` List of names that should not be mangled.
-b, --beautify [options] Beautify output/specify output options:
`beautify` Enabled with `--beautify` by default.
`preamble` Preamble to prepend to the output. You
can use this to insert a comment, for
example for licensing information.
This will not be parsed, but the source
map will adjust for its presence.
`quote_style` Quote style:
0 - auto
1 - single
2 - double
3 - original
`wrap_iife` Wrap IIFEs in parenthesis. Note: you may
want to disable `negate_iife` under
compressor options.
-o, --output <file> Output file path (default STDOUT). Specify `ast` or
`spidermonkey` to write UglifyJS or SpiderMonkey AST
as JSON to STDOUT respectively.
--comments [filter] Preserve copyright comments in the output. By
default this works like Google Closure, keeping
JSDoc-style comments that contain "@license" or
"@preserve". You can optionally pass one of the
following arguments to this flag:
- "all" to keep all comments
- a valid JS RegExp like `/foo/` or `/^!/` to
keep only matching comments.
Note that currently not *all* comments can be
kept when compression is on, because of dead
code removal or cascading statements into
sequences.
--config-file <file> Read `minify()` options from JSON file.
-d, --define <expr>[=value] Global definitions.
--ecma <version> Specify ECMAScript release: 5, 6, 7 or 8.
--ie8 Support non-standard Internet Explorer 8.
Equivalent to setting `ie8: true` in `minify()`
for `compress`, `mangle` and `output` options.
By default UglifyJS will not try to be IE-proof.
--keep-classnames Do not mangle/drop class names.
--keep-fnames Do not mangle/drop function names. Useful for
code relying on Function.prototype.name.
--name-cache <file> File to hold mangled name mappings.
--safari10 Support non-standard Safari 10/11.
Equivalent to setting `safari10: true` in `minify()`
for `mangle` and `output` options.
By default `uglify-es` will not work around
Safari 10/11 bugs.
--self Build UglifyJS as a library (implies --wrap UglifyJS)
--source-map [options] Enable source map/specify source map options:
`base` Path to compute relative paths from input files.
`content` Input source map, useful if you're compressing
JS that was generated from some other original
code. Specify "inline" if the source map is
included within the sources.
`filename` Name and/or location of the output source.
`includeSources` Pass this flag if you want to include
the content of source files in the
source map as sourcesContent property.
`root` Path to the original source to be included in
the source map.
`url` If specified, path to the source map to append in
`//# sourceMappingURL`.
--timings Disp
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
2022年09月16日微信小程序反编译脚本 旧版本不能用了我在此更新了node版本 (1294个子文件)
acorn 298B
acorn 60B
install_tools.bat 3KB
nodevars.bat 702B
range.bnf 619B
LICENSE.BSD 1KB
LICENSE.BSD 1KB
LICENSE.BSD 1KB
LICENSE.BSD 1KB
ChangeLog 10KB
npx.cmd 539B
npm.cmd 483B
html-beautify.cmd 340B
css-beautify.cmd 339B
js-beautify.cmd 338B
editorconfig.cmd 334B
cssbeautify.cmd 332B
esgenerate.cmd 332B
escodegen.cmd 331B
esvalidate.cmd 330B
uglifyjs.cmd 327B
uglifyjs.cmd 327B
esparse.cmd 327B
semver.cmd 322B
nopt.cmd 321B
acorn.cmd 320B
vm2.cmd 316B
corepack.cmd 218B
corepack 334B
css-beautify 336B
cssbeautify 2KB
cssbeautify 322B
editorconfig 326B
editorconfig 78B
escodegen 320B
esgenerate 322B
.eslintignore 33B
esparse 312B
esvalidate 318B
node.exe 59.4MB
pc_wxapkg_decrypt.exe 1.75MB
CrackMinApp.exe 33KB
.gitignore 49B
props.html 2KB
props.html 2KB
html-beautify 338B
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxOTg0NjM0,size_16,color_FFFFFF,t_70.jpeg 124KB
index.js 1.33MB
cocos2d-js-min.js 1.21MB
csstree.js 432KB
esprima.js 277KB
source-map.debug.js 266KB
source-map.debug.js 266KB
compress.js 264KB
compress.js 264KB
beautifier.js 216KB
acorn.js 213KB
adapter-min.js 184KB
adapter-min.js 179KB
csstree.min.js 164KB
beautify.js 145KB
index.js 113KB
index.js 110KB
beautify-html.js 107KB
parse.js 107KB
parse.js 107KB
source-map.js 104KB
source-map.js 104KB
index.js 104KB
beautifier.min.js 102KB
index.js 101KB
escodegen.js 93KB
uma.min.js 69KB
output.js 64KB
output.js 64KB
beautifier.js 56KB
beautify-css.js 53KB
decode-data-html.js 47KB
decode-data-html.js 47KB
ast.js 41KB
ast.js 41KB
source-map-consumer.js 40KB
source-map-consumer.js 40KB
semver.js 38KB
Tokenizer.js 35KB
beautifier.js 35KB
Tokenizer.js 34KB
resolver.js 33KB
fnmatch.js 30KB
index.js 30KB
code.js 29KB
bridge.js 29KB
events.js 27KB
index.js 27KB
traversing.js 27KB
minimatch.js 27KB
encode-html.js 26KB
source-map.min.js 26KB
source-map.min.js 26KB
encode-html.js 26KB
共 1294 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13
德宏大魔王
- 粉丝: 1w+
- 资源: 42
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0