Skip to content

Commit b4fc9f7

Browse files
Use uglify-es to replace uglify-js-harmony
1 parent 42156e1 commit b4fc9f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

minify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ do
6363
if [ "$filetype" = "css" ]; then
6464
"$MYPATH/node_modules/clean-css-cli/bin/cleancss" --compatibility $MAP_OP --s0 -o "${filename}.min.$filetype" "$filename.$filetype"
6565
else
66-
"$MYPATH/node_modules/uglify-js/bin/uglifyjs" --mangle --compress if_return=true $MAP_OP -o "${filename}.min.$filetype" "${filename}.$filetype" || "$MYPATH/node_modules/uglify-js-harmony/bin/uglifyjs" --mangle --compress if_return=true $MAP_OP -o "${filename}.min.$filetype" "${filename}.$filetype"
66+
"$MYPATH/node_modules/uglify-js/bin/uglifyjs" --mangle --compress if_return=true $MAP_OP -o "${filename}.min.$filetype" "${filename}.$filetype" || "$MYPATH/node_modules/uglify-es/bin/uglifyjs" --mangle --compress if_return=true $MAP_OP -o "${filename}.min.$filetype" "${filename}.$filetype"
6767
fi
6868
if [ ! $? -eq 0 ]; then
6969
echo.Red "local compressor failed, now try to compress with javascript-/cssminifier.com"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dependencies": {
66
"clean-css-cli": "^4.0.7",
77
"uglify-js": "^3.0.5",
8-
"uglify-js-harmony": "^2.7.7"
8+
"uglify-es": "^3.0.28"
99
},
1010
"repository": {
1111
"type": "git",

0 commit comments

Comments
 (0)