mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-23 09:31:02 +01:00
fix(makefile): correct minify-js receipe syntax
This commit is contained in:
15
Makefile
15
Makefile
@@ -118,16 +118,17 @@ mod-tidy:
|
||||
done
|
||||
|
||||
minify-js:
|
||||
@if [ ${agent} = 1 ]; then \
|
||||
@if [ "${agent}" = "1" ]; then \
|
||||
echo "minify-js: skipped for agent"; \
|
||||
elif [ ${socket-proxy} = 1 ]; then \
|
||||
elif [ "${socket-proxy}" = "1" ]; then \
|
||||
echo "minify-js: skipped for socket-proxy"; \
|
||||
else \
|
||||
for file in $(find internal/ -name '*.js' | grep -v -- '-min\.js$'); do \
|
||||
ext="${file##*.}"; \
|
||||
base="${file%.*}"; \
|
||||
min_file="${base}-min.$ext"; \
|
||||
bunx --bun uglify-js $file --compress --mangle --output $min_file; \
|
||||
for file in $$(find internal/ -name '*.js' | grep -v -- '-min\.js$$'); do \
|
||||
ext="$${file##*.}"; \
|
||||
base="$${file%.*}"; \
|
||||
min_file="$${base}-min.$$ext"; \
|
||||
echo "minifying $$file -> $$min_file"; \
|
||||
bunx --bun uglify-js $$file --compress --mangle --output $$min_file; \
|
||||
done \
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user