fix(assests): Ignore some more directories from optimization

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/37763/head
Joas Schilling 3 years ago
parent 7391881abe
commit 6368032257
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
  1. 14
      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

Loading…
Cancel
Save