2023-03-18 06:07:52 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-03-19 05:51:32 +03:00
|
|
|
set -e
|
|
|
|
|
2023-04-01 03:26:25 +03:00
|
|
|
JS="toastui umbrella"
|
|
|
|
JS="$JS tui-color-picker"
|
|
|
|
JS="$JS toastui-editor-plugin-color-syntax"
|
|
|
|
JS="$JS toastui-editor-plugin-code-syntax-highlight"
|
2023-03-19 05:51:32 +03:00
|
|
|
|
|
|
|
# Load live.js for non-production builds for faster development
|
2023-03-18 06:07:52 +03:00
|
|
|
if [ -z "$ZS_PRODUCTION" ]; then
|
2023-03-19 05:51:32 +03:00
|
|
|
JS="$JS live"
|
2023-03-18 06:07:52 +03:00
|
|
|
fi
|
2023-03-19 05:51:32 +03:00
|
|
|
|
|
|
|
for js in $JS; do
|
2023-04-01 03:26:25 +03:00
|
|
|
printf "<script type=\"application/javascript\" src=\"/assets/js/%s.js\"></script>\n" "$js"
|
2023-03-19 05:51:32 +03:00
|
|
|
done
|