- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
codershitter 01.12.2019 15:54 # 0
Antifriz_otrabotanyi 02.12.2019 14:02 # 0
Steve_Brown 02.12.2019 15:27 # 0
OHOTOJIE 04.12.2019 21:11 # 0
guest8 12.10.2020 10:55 # −999