mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
See: https://github.com/resin-io/etcher/pull/1401#pullrequestreview-37459059 Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
1048150654
commit
369cfa7e88
@ -21,7 +21,6 @@ set -e
|
||||
|
||||
BROWSERIFY="./node_modules/.bin/browserify"
|
||||
./scripts/build/check-dependency.sh "$BROWSERIFY"
|
||||
./scripts/build/check-dependency.sh uglifyjs
|
||||
|
||||
function usage() {
|
||||
echo "Usage: $0"
|
||||
@ -81,6 +80,7 @@ EOF
|
||||
mv "$ARGV_OUTPUT.TMP" "$ARGV_OUTPUT"
|
||||
|
||||
if [ "$ARGV_MINIFY" == "true" ]; then
|
||||
./scripts/build/check-dependency.sh uglifyjs
|
||||
uglifyjs --compress --output "$ARGV_OUTPUT.MIN" -- "$ARGV_OUTPUT"
|
||||
mv "$ARGV_OUTPUT.MIN" "$ARGV_OUTPUT"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user