Encrypto27
commited on
Commit
·
ee19a29
1
Parent(s):
6769370
update uglify
Browse files- plugins/encrypt.js +6 -6
plugins/encrypt.js
CHANGED
|
@@ -41,15 +41,15 @@ cmd({
|
|
| 41 |
// Minify the code using UglifyJS
|
| 42 |
const minifiedCode = UglifyJS.minify(q, {
|
| 43 |
compress: {
|
| 44 |
-
drop_console: true
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
},
|
| 49 |
mangle: {
|
| 50 |
toplevel: true, // Mangle global variables (optional)
|
| 51 |
-
|
| 52 |
-
|
| 53 |
}
|
| 54 |
}).code;
|
| 55 |
|
|
|
|
| 41 |
// Minify the code using UglifyJS
|
| 42 |
const minifiedCode = UglifyJS.minify(q, {
|
| 43 |
compress: {
|
| 44 |
+
drop_console: true // Remove console.log statements (optional)
|
| 45 |
+
screw_ie8: true,
|
| 46 |
+
collapse_vars: true,
|
| 47 |
+
hoist_vars: true
|
| 48 |
},
|
| 49 |
mangle: {
|
| 50 |
toplevel: true, // Mangle global variables (optional)
|
| 51 |
+
// properties: true,
|
| 52 |
+
// functions: true
|
| 53 |
}
|
| 54 |
}).code;
|
| 55 |
|