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