zs/contrib/plugins/scripts

22 lines
503 B
Plaintext
Raw Permalink Normal View History

#!/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"