zs-starter-template/.zs/scripts
2023-03-19 12:51:32 +10:00

20 lines
321 B
Bash
Executable File

#!/bin/sh
set -e
JS=""
# Load live.js for non-production builds for faster development
if [ -z "$ZS_PRODUCTION" ]; then
JS="$JS live"
fi
ext="js"
if [ -n "$ZS_PRODUCTION" ]; then
ext="min.js"
fi
for js in $JS; do
printf "<script type=\"application/javascript\" src=\"/js/%s.%s\"></script>\n" "$js" "$ext"
done