Use local Open Sans font in development

This commit is contained in:
2015-03-19 16:35:15 +07:00
parent dded4cbafc
commit 6f75795a6e
3 changed files with 24 additions and 3 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ dist:
# Compressing CSS
cat app/index.html \
| grep stylesheet \
| grep -v http \
| grep -v opensans \
| cut -d '"' -f 4 \
| sed -e 's/^/app/' \
| xargs cat \
@@ -37,7 +37,7 @@ dist:
# Replacing all script tags with a single one
cat app/index.html \
| perl -pe 's/<link.*>\n/STYLE_TAG/g' \
| perl -pe 's/(STYLE_TAG\s*)+/<link rel="stylesheet" href="\/app.css">\n /g' \
| perl -pe 's/(STYLE_TAG\s*)+/<link rel="stylesheet" href="\/app.css">\n <link rel="stylesheet" href="http:\/\/fonts.googleapis.com\/css?family=Open\+Sans:400,300,600">\n /g' \
| perl -pe 's/<script.*>\n/SCRIPT_TAG/g' \
| perl -pe 's/(SCRIPT_TAG\s*)+/<script type="text\/javascript" src="\/app.js"><\/script>\n/g' \
> build/index.html