mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
add module preloads before deploy to github pages
This commit is contained in:
6
gen_module_preload.sh
Executable file
6
gen_module_preload.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
PRELOADS=""
|
||||
for f in `find src -name '*.js'`; do
|
||||
PRELOADS=$PRELOADS"<link rel='modulepreload' href='/$f'>"
|
||||
done
|
||||
|
||||
sed -i.bak "s#.*PRELOADS_PLACEHOLDER.*#$PRELOADS#" index.html
|
||||
Reference in New Issue
Block a user