Switch to new bundled fastboot.js

This simplifies cache busting greatly without needing to do further
processing on any fastboot.js code before deploying. It also removes the
need for a non-module script with global scope.
This commit is contained in:
Danny Lin
2021-01-23 19:47:37 -08:00
committed by Daniel Micay
parent 94ec5e0440
commit dff5a750d1
4 changed files with 9 additions and 16 deletions

View File

@@ -7,7 +7,7 @@ export PATH="$PWD/node_modules/.bin:$PATH"
rm -rf static_tmp
cp -a static static_tmp
rm -rf static_tmp/js/fastboot/{.git,demo,README.md}
rm -rf static_tmp/js/fastboot/{!(dist),dist/!(fastboot.min.js|libs)}
for file in static_tmp/**/*.@(json|webmanifest); do
json_reformat -m < "$file" | sponge "$file"