zs-starter-template/.zs/scripts

18 lines
399 B
Bash
Executable File

#!/bin/sh
set -e
JS="toastui umbrella"
JS="$JS tui-color-picker"
JS="$JS toastui-editor-plugin-color-syntax"
JS="$JS toastui-editor-plugin-code-syntax-highlight"
# Load live.js for non-production builds for faster development
if [ -z "$ZS_PRODUCTION" ]; then
JS="$JS live"
fi
for js in $JS; do
printf "<script type=\"application/javascript\" src=\"/assets/js/%s.js\"></script>\n" "$js"
done