From 7f3c5f7c1b8c5f0b7a69b5fe2589f52b811d6d92 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Mon, 13 Sep 2021 11:26:12 +0200 Subject: [PATCH] Remove the need to rename index files as we're intercepting missing files and not serving fixed filenames --- modd.conf | 1 - webapp/fix-index-hash.sh | 8 -------- 2 files changed, 9 deletions(-) delete mode 100755 webapp/fix-index-hash.sh diff --git a/modd.conf b/modd.conf index dfffa34..e66f746 100644 --- a/modd.conf +++ b/modd.conf @@ -5,7 +5,6 @@ webapp/src/** { indir: webapp prep: npm run build - prep: ./fix-index-hash.sh } server/**/*.go server/web/static/** { diff --git a/webapp/fix-index-hash.sh b/webapp/fix-index-hash.sh deleted file mode 100755 index 675ad7a..0000000 --- a/webapp/fix-index-hash.sh +++ /dev/null @@ -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