craban/webapp/fix-index-hash.sh

8 lines
212 B
Bash
Raw Normal View History

#!/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