mirror of
https://git.mills.io/prologic/zs
synced 2024-11-25 14:56:12 +03:00
22 lines
503 B
Bash
Executable File
22 lines
503 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
SCRIPTS="page"
|
|
MODULES="globe phenon"
|
|
|
|
# Load live.js for non-production builds for faster development
|
|
if [ -z "$ZS_PRODUCTION" ]; then
|
|
SCRIPTS="$SCRIPTS live"
|
|
fi
|
|
|
|
for script in $SCRIPTS; do
|
|
printf "<script type=\"application/javascript\" src=\"/js/%s.js\"></script>\n" "$script"
|
|
done
|
|
|
|
for module in $MODULES; do
|
|
printf "<script type=\"module\" src=\"/js/modules/%s.js\"></script>\n" "$module"
|
|
done
|
|
|
|
printf "<script defer type=\"module\" src=\"/js/main.js\">main();</script>\n"
|