Added gzip support #82

This commit is contained in:
logsol 2014-12-20 05:30:22 +01:00
parent 3b43119d93
commit c52fc549e1
6 changed files with 20 additions and 9 deletions

9
build/build.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
if [ -d "build" ]; then
cd build
echo "\\033[1;36mcompiling client scripts...\\033[0m"
rm -f "client.min.js.gz"
../node_modules/requirejs/bin/r.js -o build.js > /dev/null \
&& gzip --keep client.min.js && echo "\\033[1;32mdone.\\033[0m"
cd ..
fi