Update build.sh

This commit is contained in:
Kevin Peng
2025-04-20 11:21:34 +08:00
committed by GitHub
parent fb902eeade
commit b7fa65eff8

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/||")"
if [ "$target_dir" = "dist/js/" ]; then
target_dir="dist/js"
fi