blob: 83dcb1885a7fcafecd3fa38e9a49f12ffbc461de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/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}.must
done
#delete unused files
rm main.js main.js.map main.css.map
|