blob: 167620f39ffde04f80a1ba1402b2ef6dbc8ba371 (
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
|