mapguesser/scripts/update.sh
Pőcze Bence ba01767c6c MAPG-7 implement install and update scripts
minor adaptations for paths, environment variables and Dockerfile
2020-05-20 13:44:54 +02:00

13 lines
384 B
Bash
Executable File

#/bin/bash
ROOT_DIR=$(dirname $(readlink -f "$0"))/..
. ${ROOT_DIR}/.env
if [ -z "${DEV}" ] || [ "${DEV}" -eq "0" ]; then
echo "Uglifying JS and CSS files..."
uglifyjs ${ROOT_DIR}/public/static/js/mapguesser.js -c -m -o ${ROOT_DIR}/public/static/js/mapguesser.js
cleancss ${ROOT_DIR}/public/static/css/mapguesser.css -o ${ROOT_DIR}/public/static/css/mapguesser.css
fi