X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=util%2Fminifyjs.sh;h=b5657138350e79da2c668a0158817cce262f4435;hb=d301a363b0c6b7ebb9e70d44ddf82f3d715e4041;hp=bd60436134098df301d145650d2ce95234ddb3e1;hpb=a0e18a0ff8fbefaf5cb66a4d5c91fac1d45d5931;p=friendica.git diff --git a/util/minifyjs.sh b/util/minifyjs.sh index bd60436134..b565713835 100755 --- a/util/minifyjs.sh +++ b/util/minifyjs.sh @@ -1,22 +1,21 @@ #!/bin/bash +command -v uglifyjs >/dev/null 2>&1 || { echo >&2 "I require UglifyJS but it's not installed. Aborting."; exit 1; } + MINIFY_CMD=uglifyjs JSFILES=( "js/acl.js" "js/ajaxupload.js" "js/country.js" - "js/fk.autocomplete.js" "js/jquery.htmlstream.js" "js/main.js" "js/webtoolkit.base64.js" "view/theme/frost/js/acl.js" - "view/theme/frost/js/fk.autocomplete.js" "view/theme/frost/js/jquery.divgrow-1.3.1.f1.js" "view/theme/frost/js/main.js" "view/theme/frost/js/theme.js" "view/theme/frost-mobile/js/acl.js" - "view/theme/frost-mobile/js/fk.autocomplete.js" "view/theme/frost-mobile/js/jquery.divgrow-1.3.1.f1.js" "view/theme/frost-mobile/js/main.js" "view/theme/frost-mobile/js/theme.js" @@ -25,9 +24,6 @@ JSFILES=( JSFILES2=( "library/colorbox/jquery.colorbox.js" ) -JSFILES3=( - "library/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js" -) for i in ${JSFILES[@]} do