diff options
author | Joas Schilling <coding@schilljs.com> | 2023-04-24 08:58:52 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-04-24 08:59:38 +0200 |
commit | 636803225792412a4162846810a953491ee717fd (patch) | |
tree | b52c348e6ae4575540c872e017a7e9d123c230f8 /build/image-optimization.sh | |
parent | 7391881abeeb6b80926c1a24bb51a6cc380e1f21 (diff) | |
download | nextcloud-server-636803225792412a4162846810a953491ee717fd.tar.gz nextcloud-server-636803225792412a4162846810a953491ee717fd.zip |
fix(assests): Ignore some more directories from optimization
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'build/image-optimization.sh')
-rwxr-xr-x | build/image-optimization.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/build/image-optimization.sh b/build/image-optimization.sh index 032f8982d80..01af95c97b9 100755 --- a/build/image-optimization.sh +++ b/build/image-optimization.sh @@ -36,15 +36,21 @@ function recursive_optimize_images() { cd "$1" || return DIR_NAME=${PWD##*/} - if [[ "$DIR_NAME" == "node_modules" ]]; then + if [[ "$DIR_NAME" == "3rdparty" ]]; then + echo "Ignoring 3rdparty for image optimization" + return + elif [[ "$DIR_NAME" == "build" ]]; then + echo "Ignoring build for image optimization" + return + elif [[ "$DIR_NAME" == "cypress" ]]; then + echo "Ignoring cypress for image optimization" + return + elif [[ "$DIR_NAME" == "node_modules" ]]; then echo "Ignoring node_modules for image optimization" return elif [[ "$DIR_NAME" == "tests" ]]; then echo "Ignoring tests for image optimization" return - elif [[ "$DIR_NAME" == "3rdparty" ]]; then - echo "Ignoring 3rdparty for image optimization" - return elif [[ "$DIR_NAME" == "vendor" ]]; then echo "Ignoring vendor for image optimization" return |