demo project

This commit is contained in:
2023-02-21 12:36:06 +00:00
parent 751b6e753c
commit 57bfba5b8d
39 changed files with 4667 additions and 76 deletions

16
scripts/preload-meta.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
if [ "$1" == "" ]; then
echo template filename required
exit 1
fi
preload=$(for f in frontend/dist/*.woff2; do
echo "<link rel=\"preload\" href=\"/dist/`basename $f`\" as=\"font\" type=\"font/woff2\" crossorigin />"
done)
template="`cat $1 | sed -e 's#<!--PRELOAD-->#\$preload#'`"
eval "cat <<EOF
$template
EOF"