]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(assests): Ignore some more directories from optimization
authorJoas Schilling <coding@schilljs.com>
Mon, 24 Apr 2023 06:58:52 +0000 (08:58 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 24 Apr 2023 06:59:38 +0000 (08:59 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
build/image-optimization.sh

index 032f8982d803a90c5258cd8fb5dabe7d1ee89dd4..01af95c97b9354636651dd19d90c64f92ff771e5 100755 (executable)
@@ -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