mirror of
https://git.mills.io/prologic/zs.git
synced 2024-11-08 03:07:57 -05:00
22 lines
503 B
Plaintext
22 lines
503 B
Plaintext
|
#!/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"
|