UglifyJS 2
==========
[![Build Status](https://travis-ci.org/mishoo/UglifyJS2.svg)](https://travis-ci.org/mishoo/UglifyJS2)
UglifyJS is a JavaScript parser, minifier, compressor or beautifier toolkit.
This page documents the command line utility. For
[API and internals documentation see my website](http://lisperator.net/uglifyjs/).
There's also an
[in-browser online demo](http://lisperator.net/uglifyjs/#demo) (for Firefox,
Chrome and probably Safari).
#### Note:
- `uglify-js` only supports ECMAScript 5 (ES5).
- Support for `const` is [present but incomplete](#support-for-const), and may not be
transformed properly.
- Those wishing to minify ES2015+ (ES6+) should use the `npm` package [**uglify-es**](https://github.com/mishoo/UglifyJS2/tree/harmony).
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-js -g
From NPM for programmatic use:
npm install uglify-js
Usage
-----
uglifyjs [input files] [options]
UglifyJS2 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 you want to read from STDIN instead, pass a single dash instead of input
files.
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
The available options are:
```
--source-map Specify an output file where to generate source
map.
--source-map-root The path to the original source to be included
in the source map.
--source-map-url The path to the source map to be added in //#
sourceMappingURL. Defaults to the value passed
with --source-map.
--source-map-include-sources Pass this flag if you want to include the
content of source files in the source map as
sourcesContent property.
--source-map-inline Write base64-encoded source map to the end of js output.
--in-source-map 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
inline with the sources.
--screw-ie8 Use this flag if you don't wish to support
Internet Explorer 6/7/8.
By default UglifyJS will not try to be IE-proof.
--support-ie8 Use this flag to support Internet Explorer 6/7/8.
Equivalent to setting `screw_ie8: false` in `minify()`
for `compress`, `mangle` and `output` options.
--expr Parse a single expression, rather than a
program (for parsing JSON)
-p, --prefix Skip prefix for original filenames that appear
in source maps. For example -p 3 will drop 3
directories from file names and ensure they are
relative paths. You can also specify -p
relative, which will make UglifyJS figure out
itself the relative paths between original
sources, the source map and the output file.
-o, --output Output file (default STDOUT).
-b, --beautify Beautify output/specify output options.
-m, --mangle Mangle names/pass mangler options.
-r, --reserved Reserved names to exclude from mangling.
-c, --compress Enable compressor/pass compressor options, e.g.
`-c 'if_return=false,pure_funcs=["Math.pow","console.log"]'`
Use `-c` with no argument to enable default compression
options.
-d, --define Global definitions
-e, --enclose Embed everything in a big function, with a
configurable parameter/argument list.
--comments 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.
--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.
--stats Display operations run time on STDERR.
--acorn Use Acorn for parsing.
--spidermonkey Assume input files are SpiderMonkey AST format
(as JSON).
--self Build itself (UglifyJS2) as a library (implies
--wrap=UglifyJS --export-all)
--wrap Embed everything in a big function, making the
“exports” and “global” variables available. You
need to pass an argument to this option to
specify the name that your module will take
when included in, say, a browser.
--export-all Only used when --wrap, this tells UglifyJS to
add code to automatically export all globals.
--lint Display some scope warnings
-v, --verbose Verbose
-V, --version Print version number and exit.
--noerr Don't throw an error for unknown options in -c,
-b or -m.
--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`.
--keep-fnames Do not mangle/drop function names. Useful for
code relying on Function.prototype.name.
--reserved-file File containing reserved names
--reserve-domprops Make (most?) DOM properties reserved for
--mangle-props
--mangle-props Mangle property names (default `0`). Set to
没有合适的资源?快使用搜索试试~ 我知道了~
java spring cloud 分布式系统
共13732个文件
java:5648个
js:3272个
html:1125个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 1 下载量 154 浏览量
2022-07-13
06:38:17
上传
评论 1
收藏 672.46MB RAR 举报
温馨提示
智慧物业介绍 基于SpringCloud微服务、分布式架构,更易扩展;项目前后端分离, 后端使用JAVA,前端VUE,Uni-app框架;MySQL、Redis多种数据 存储方式;ActiveMq订阅消息队列。 管理系统后端,小区管理系统前端,小区管理系统业主手机版、小区管 理系统物业手机版,适用小程序。 核心功能 资产管理、业务管理、费用管理、采购管理、设备管理、智慧服务、保修管理、 组织管理、智慧停车、巡检管理
资源推荐
资源详情
资源评论
收起资源包目录
java spring cloud 分布式系统 (13732个子文件)
acorn 3KB
acorn 2KB
acorn 331B
acorn 331B
AUTHORS 612B
AUTHORS 550B
.auto-changelog 113B
contractFee.vue.bak 13KB
complaintList.vue.bak 8KB
template_1.json.bak 3KB
project.config.json.bak 1KB
resourceEnter.bpmn 9KB
complaint.bpmn 4KB
resourceEnter.bpmn2d 645B
cleancss 7KB
cleancss 345B
mvnw.cmd 6KB
cleancss.cmd 282B
uglifyjs.cmd 282B
uglifyjs.cmd 282B
mkdirp.cmd 277B
jade.cmd 276B
acorn.cmd 275B
acorn.cmd 275B
mime.cmd 271B
redis.conf 664B
config 311B
config 310B
config 305B
config 304B
COPYING 10KB
style.css 202KB
bootstrap.css 198KB
bootstrap.min.css 152KB
bootstrap.css 149KB
bootstrap.min.css 118KB
bpmn-embedded.css 92KB
icon.css 71KB
icon.css 71KB
layui.css 71KB
animate.css 67KB
bootstrap-grid.css 67KB
main.css 67KB
main.css 66KB
old-layui.css 52KB
view.css 49KB
bpmn-js-properties-panel.css 48KB
bootstrap-grid.min.css 47KB
fontawesome-all.css 46KB
weui.css 45KB
fontawesome.css 44KB
font-awesome.css 39KB
fontawesome-all.min.css 35KB
old-vc-ui.css 34KB
datepicker3.css 34KB
fontawesome.min.css 33KB
bootstrap-social.css 33KB
jquery-ui.css 33KB
bootstrap-rtl.css 32KB
vc-ui.css 32KB
jquery-ui.min.css 31KB
style.css 30KB
font-awesome.min.css 30KB
fullcalendar.css 29KB
bootstrap-theme.css 26KB
ambiance.css 26KB
style.min.css 25KB
bootstrap-rtl.min.css 24KB
bootstrap-theme.min.css 23KB
style.css 22KB
sweetalert.css 18KB
summernote-bs4.css 17KB
diagram-js.css 17KB
summernote-bs4.min.css 16KB
select2.min.css 15KB
chartist.min.css 14KB
layer.css 14KB
jasny-bootstrap.min.css 14KB
jquery-ui-1.10.4.custom.min.css 14KB
chosen.css 13KB
ui.jqgrid.css 13KB
social-buttons.css 13KB
dropzone.css 12KB
bootstrap-chosen.css 11KB
bootstrap-datetimepicker.min.css 11KB
bootstrap-select.min.css 11KB
layui.mobile.css 10KB
bpmn.css 10KB
form-js-editor.css 9KB
ladda.min.css 9KB
toastr.css 8KB
iconfont.css 8KB
iconfont.css 8KB
bpmn-codes.css 8KB
ladda-themeless.min.css 8KB
codemirror.css 7KB
laydate.css 7KB
daterangepicker-bs3.css 7KB
awesome-bootstrap-checkbox.css 7KB
toastr.min.css 7KB
共 13732 条
- 1
- 2
- 3
- 4
- 5
- 6
- 138
资源评论
- 佬佬带带2022-10-01怎么能有这么好的资源!只能用感激涕零来形容TAT...
轻澜-诀袂
- 粉丝: 14
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功