rvr-nextgen/scripts/minify.sh
Pőcze Bence 7945627708
Some checks failed
rvr-nextgen/pipeline/head There was a failure building this commit
initial commit for rvr-nextgen
2023-04-08 00:45:40 +02:00

12 lines
334 B
Bash
Executable File

#!/bin/bash
ROOT_DIR=$(dirname $(readlink -f "$0"))/..
. ${ROOT_DIR}/.env
find ${ROOT_DIR}/public/static/js -type f -iname '*.js' -exec uglifyjs {} -c -m -o {} \;
find ${ROOT_DIR}/public/static/css -type f -iname '*.css' -exec cleancss {} -o {} \;
find ${ROOT_DIR}/public/static/img -type f -iname '*.svg' -exec svgo {} -o {} \;