Files
angular.localization/scullyfy.sh
2020-11-10 21:11:48 +01:00

18 lines
429 B
Bash
Executable File

#!/bin/bash
languages=(en de)
rm -rf dist/static
for language in "${languages[@]}"
do
index_file="dist/localization/$language/index.html"
echo "Replace base href for $language in $index_file"
sed -i -e 's/"\/'$language'\/"/"\/"/g' $index_file
echo "Build scully for $language"
LOCALE=$language npm run scully -- --scanRoutes
LOCALE=$language npm run scully
done
cp htaccess.file dist/static/.htaccess