Remove the need to rename index files as we're intercepting missing files and not serving fixed filenames

This commit is contained in:
Miguel de la Cruz 2021-09-13 11:26:12 +02:00
parent 612f96a9c5
commit 7f3c5f7c1b
2 changed files with 0 additions and 9 deletions

View file

@ -5,7 +5,6 @@
webapp/src/** { webapp/src/** {
indir: webapp indir: webapp
prep: npm run build prep: npm run build
prep: ./fix-index-hash.sh
} }
server/**/*.go server/web/static/** { server/**/*.go server/web/static/** {

View file

@ -1,8 +0,0 @@
#!/usr/bin/env bash
outputDir="../server/web/static"
mv $outputDir/index.*.js $outputDir/index.js
mv $outputDir/index.*.js.map $outputDir/index.js.map
sed -i -E "s/index.\w+.js/index.js/" $outputDir/index.html
sed -i -E "s/sourceMappingURL=index.\w+.js.map/sourceMappingURL=index.js.map/" $outputDir/index.js