Update build.sh

This commit is contained in:
Kevin Peng
2025-04-20 11:29:20 +08:00
committed by GitHub
parent bf39ebad40
commit 25ac310e43

View File

@@ -60,7 +60,7 @@ echo "$js_files"
echo "Minifying JS files..."
for file in $js_files; do
echo "Input JS file: $file"
target_dir="dist/js/$(dirname "$file" | sed "s|^src//js//||")"
target_dir="dist/js/$(dirname "$file" | sed "s|^src\/js\/||")"
if [ "$target_dir" = "dist/js/" ]; then
target_dir="dist/js"
fi