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
没有合适的资源?快使用搜索试试~ 我知道了~
wxappUnpacker-master(qwerty472123版)
共1862个文件
js:1467个
json:116个
md:83个
3星 · 超过75%的资源 需积分: 50 109 下载量 143 浏览量
2020-02-27
19:33:48
上传
评论 1
收藏 2.17MB RAR 举报
温馨提示
大神qwerty472123的最终版本 github地址:https://github.com/qwerty472123/wxappUnpacker 内附:免命令行工具一键解包
资源推荐
资源详情
资源评论
收起资源包目录
wxappUnpacker-master(qwerty472123版) (1862个子文件)
range.bnf 619B
LICENSE.BSD 1KB
LICENSE.BSD 1KB
LICENSE.BSD 1KB
LICENSE.BSD 1KB
ChangeLog 10KB
html-beautify.cmd 295B
css-beautify.cmd 294B
js-beautify.cmd 293B
editorconfig.cmd 289B
cssbeautify.cmd 287B
esgenerate.cmd 287B
escodegen.cmd 286B
esvalidate.cmd 285B
uglifyjs.cmd 282B
esparse.cmd 282B
semver.cmd 277B
mkdirp.cmd 277B
nopt.cmd 276B
vm2.cmd 271B
css-beautify 354B
cssbeautify 2KB
cssbeautify 340B
editorconfig 344B
editorconfig 78B
escodegen 338B
esgenerate 340B
.eslintignore 8B
esparse 330B
esvalidate 336B
.gitignore 49B
props.html 2KB
html-beautify 356B
lodash.js 528KB
csstree.js 412KB
esprima.js 277KB
source-map.debug.js 266KB
compress.js 264KB
beautifier.js 212KB
csstree.min.js 157KB
beautify.js 145KB
core.js 112KB
beautify-html.js 107KB
parse.js 107KB
source-map.js 104KB
beautifier.min.js 100KB
escodegen.js 93KB
index.js 86KB
named_entity_data.js 72KB
lodash.min.js 72KB
output.js 64KB
index.js 63KB
beautifier.js 55KB
beautify-css.js 52KB
ast.js 41KB
source-map-consumer.js 40KB
semver.js 38KB
_stream_readable.js 35KB
beautifier.js 34KB
fnmatch.js 30KB
code.js 29KB
contextify.js 29KB
Tokenizer.js 28KB
index.js 27KB
source-map.min.js 26KB
index.js 26KB
estraverse.js 26KB
minimatch.js 25KB
scope.js 25KB
cli.js 24KB
cli.js 24KB
index.js 23KB
wuWxml.js 22KB
mozilla-ast.js 22KB
_stream_writable.js 21KB
match.js 19KB
glob.js 19KB
tokenizer.js 19KB
index.js 18KB
generic.js 16KB
_baseConvert.js 16KB
beautifier.js 15KB
cssbeautify.js 15KB
List.js 15KB
source-map-generator.js 14KB
main.js 14KB
parse.js 14KB
sandbox.js 14KB
source-node.js 13KB
Lexer.js 13KB
util.js 13KB
core.min.js 12KB
match-graph.js 12KB
output.js 12KB
attributes.js 12KB
sync.js 12KB
nopt.js 12KB
List.js 12KB
wuWxss.js 12KB
tokenizer.js 11KB
共 1862 条
- 1
- 2
- 3
- 4
- 5
- 6
- 19
资源评论
- wy317002020-08-07免命令行工具一键解包 在哪里啊?
- BestMian2020-09-30遇到./wxParse/wxParse.wxml 还是解决不了
- tangdayun2021-04-03没有分包的都可以解的出,有分包报错,需要高手改代码才可以。
- hanxu20092020-07-01不错,比较实用,谢谢楼主
dahua811
- 粉丝: 2
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功