mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-24 14:26:04 +03:00
20 lines
337 B
Bash
Executable File
20 lines
337 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
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
|
|
printf "<script type=\"application/javascript\" src=\"/assets/js/%s.%s\"></script>\n" "$js" "$ext"
|
|
done
|