zs-starter-template/.zs/scripts

20 lines
337 B
Plaintext
Raw Normal View History

#!/bin/sh
set -e
2023-04-01 04:54:41 +03:00
JS="highlight"
# 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
2023-03-30 15:52:12 +03:00
printf "<script type=\"application/javascript\" src=\"/assets/js/%s.%s\"></script>\n" "$js" "$ext"
done