Skip to content

Commit adaa0f9

Browse files
committed
Update build.sh
1 parent 8853a91 commit adaa0f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/bin/bash
22

3+
#download yui compressor here
34
#https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.jar
45

56
YUI_COMPRESSOR_JAR="/opt/yuicompressor-2.4.8.jar"
67
MINIFIED_FILE="angular-filemanager.min.js"
78
DIR_DIST="assets/js"
89
MINIFIED_PATH="$DIR_DIST/$MINIFIED_FILE"
910

10-
find assets/js ! -name "$MINIFIED_FILE" -name "*.js" | sort | xargs -I {} cat {} > "$MINIFIED_PATH"
11+
find assets/js ! -name "$MINIFIED_FILE" -name "*.js" | sort | xargs -I "{}" cat "{}" > "$MINIFIED_PATH"
1112
#java -jar "$YUI_COMPRESSOR_JAR" "$MINIFIED_PATH" -o "$MINIFIED_PATH"
1213

1314
echo "Complete at: $MINIFIED_PATH"

0 commit comments

Comments
 (0)