We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3172589 commit ae28cdaCopy full SHA for ae28cda
build.sh
@@ -10,14 +10,14 @@ MINIFIED_PATH="$DIR_DIST/$MINIFIED_FILE"
10
11
find assets/js ! -name "$MINIFIED_FILE" -name "*.js" \
12
| sort \
13
- | xargs -I "{}" cat "{}" \
14
- | sed '{:q;N;s/\n/ /g;t q}' > "$MINIFIED_PATH"
+ | xargs -I "{}" cat "{}" > "$MINIFIED_PATH"
15
16
-
17
-if [ -f "$YUI_COMPRESSOR_JAR" ] && which java > /dev/null ; then
18
- java -jar "$YUI_COMPRESSOR_JAR" "$MINIFIED_PATH" -o "$MINIFIED_PATH"
+if $(echo "$@" | grep -qv 'prevent-minify') ; then
+ if [ -f "$YUI_COMPRESSOR_JAR" ] && which java > /dev/null ; then
+ java -jar "$YUI_COMPRESSOR_JAR" "$MINIFIED_PATH" -o "$MINIFIED_PATH"
+ fi
19
fi
20
21
ES=$?;
22
-echo "MINIFIED: $MINIFIED_PATH"
+echo "OUTFILE: $MINIFIED_PATH"
23
exit $ES
0 commit comments