forked from Skalman/UglifyJS-online
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
198 lines (182 loc) · 6.81 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>uglifymarket</title>
<!-- read script.js for more-->
<link rel="shortcut icon" href="persist/favicon.ico">
<link rel="stylesheet" href="persist/style.css">
</head>
<body class="s-input s-info">
<div class="header">
<h1><a id="header-link" href="./" style="text-decoration: none;">js uglifier & bookmarklet generator</a></h1>
</div>
<div class="content">
<div class="col i i-input">
<textarea id="in" rows="15" cols="80" spellcheck="false" tabindex="1" autofocus>// paste code in here</textarea>
<div class="tools">
<button class="btn-main pull-right" id="btn-go" tabindex="1">minify</button>
<button id="btn-options" tabindex="2">options</button>
<label><input id="cb-as-i-type" type="checkbox" checked>minify as I type</label>
</div>
</div>
<div class="col i i-options">
<textarea id="options" rows="15" cols="80" spellcheck="false" tabindex="1">// Documentation of the options is available at https://github.com/mishoo/UglifyJS2
{
parse: {
bare_returns : false,
expression : false,
filename : null,
html5_comments : true,
module : false,
shebang : true,
strict : false,
toplevel : null
},
compress: {
annotations : true,
arguments : true,
arrows : true,
assignments : true,
awaits : true,
booleans : true,
collapse_vars : true,
comparisons : true,
conditionals : true,
dead_code : true,
default_values : true,
directives : true,
drop_console : false,
drop_debugger : true,
evaluate : true,
expression : false,
functions : true,
global_defs : false,
hoist_exports : true,
hoist_funs : false,
hoist_props : true,
hoist_vars : false,
ie : false,
if_return : true,
imports : true,
inline : true,
join_vars : true,
keep_fargs : false,
keep_fnames : false,
keep_infinity : false,
loops : true,
merge_vars : true,
module : false,
negate_iife : true,
objects : true,
optional_chains : true,
passes : 1,
properties : true,
pure_funcs : null,
pure_getters : "strict",
reduce_funcs : true,
reduce_vars : true,
rests : true,
sequences : true,
side_effects : true,
spreads : true,
strings : true,
switches : true,
templates : true,
top_retain : null,
toplevel : false,
typeofs : true,
unsafe : false,
unsafe_comps : false,
unsafe_Function : false,
unsafe_math : false,
unsafe_proto : false,
unsafe_regexp : false,
unsafe_undefined : false,
unused : true,
varify : true,
webkit : false,
yields : true
},
mangle: {
eval : false,
ie : false,
keep_fargs : false,
keep_fnames : false,
properties : false,
reserved : [],
toplevel : false,
v8 : false,
webkit : false
},
output: {
annotations : false,
ascii_only : false,
beautify : false,
braces : false,
comments : /@license|@preserve|^!/,
extendscript : false,
galio : false,
ie : false,
indent_level : 4,
indent_start : 0,
inline_script : true,
keep_quoted_props: false,
max_line_len : false,
preamble : null,
preserve_line : false,
quote_keys : false,
quote_style : 0,
semicolons : true,
shebang : true,
source_map : null,
v8 : false,
webkit : false,
width : 80,
wrap_iife : false
},
wrap: false
}
</textarea>
<div class="tools">
<button class="btn-main" id="btn-options-save" tabindex="2">save</button>
<button id="btn-options-reset" tabindex="2">use defaults</button>
</div>
</div>
<div class="col i i-info">
<p><strong><a href="https://github.com/mishoo/uglifyjs">uglify-js</a></strong> is a tried and tested tool which minifies your js (by <a href="https://github.com/mishoo">mihai bazon</a>)</p>
<p><a href="https://github.com/Skalman/UglifyJS-online">browser wrapper</a> made by <a href="https://danwolff.se/">dan wolff</a></p>
<p>bookmarklet generator & this design made by <a href="https://yungztrunks.de">yungztrunks</a></p>
<p><small>uglify version <code id="version">3.19.0</code></small></p>
</div>
<div class="col i i-output">
<p>
minified output (<span id="stats"></span>)</p>
<textarea id="out" spellcheck="false" tabindex="3"></textarea>
<div class="tools">
<button class="btn-main pull-left" id="btn-copy" tabindex="3">copy output</button>
<button class="btn-main pull-right" id="btn-gen-bookmarklet" tabindex="3">generate</button>
<input class="btn-main pull-right" id="title-bookmarklet" placeholder="bookmark title" spellcheck="false" tabindex="1"></input>
</div>
<br>
<a class="lasti" id="bookmarklet-final"></a>
<a class="lasti" id="drag-drop-notice"></a>
</div>
<div class="col i i-error">
<pre id="error"></pre>
</div>
</div>
<script src="uglify/lib/minify.js"></script>
<script src="uglify/lib/utils.js"></script>
<script src="uglify/lib/ast.js"></script>
<script src="uglify/lib/parse.js"></script>
<script src="uglify/lib/transform.js"></script>
<script src="uglify/lib/scope.js"></script>
<script src="uglify/lib/output.js"></script>
<script src="uglify/lib/compress.js"></script>
<script src="uglify/lib/propmangle.js"></script>
<!-- The following aren't needed: sourcemap.js, mozilla-ast.js -->
<!-- i trust you skalman -->
<script src="scripts/script.js"></script>
</body>
</html>