aboutsummaryrefslogtreecommitdiff
path: root/packages/challenger-ui/create_must.sh
blob: 1a92dd3026ae570a6485e0d4d238bd66930fbc53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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