#!/bin/bash
cd dist/prod
for file in *.html; do
#remove the js reference used for dev
sed /main.js/d -i $file
#change the location of css since challenger backend
#wants them in the root path
sed 's/="main.css"/="..\/main.css"/' -i $file
#rename the extension to must template
mv $file ${file:0:-5}.en.must
done
#delete unused files
rm main.js main.js.map main.css.map