- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
FILES=`find css js templates -type f -regex '.*.\(js\|css\|twig\)'`
for f in $FILES; do
str=`echo -n $f|rev`
i=`expr index $str /`
ret=`echo -n ${str:$i}|rev`
echo $f|grep twig &>/dev/null
r=$?
echo $f :
if [ "$r" -eq 0 ]; then
minify --type html $f --output $FOLDER/$ret
else
minify $f --output $FOLDER/$ret
fi
done
Комментарии (5) RSS