hscc

Soure code of <https://hugo.soucy.cc>.
git clone git://soucy.cc/hscc.git
Log | Files | Refs

commit 6a7f3e1b8380424a2c19daa580163fea34cd1b2e
parent a6cc7724f8b7eb5d059e80c68f02afabd0839847
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Mon, 22 Nov 2021 22:42:05 -0500

Modify the css shell script

Diffstat:
Msrc/css/css.sh | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/css/css.sh b/src/css/css.sh @@ -4,9 +4,9 @@ dst="../../public_html/css/" -while read line; do - [ ! -z "$line" ] && cat "./$line" -done <<-EOF | tr -d '\n\r' > "${dst}index.min.css" +while read -r line; do + [ -n "$line" ] && cat "./$line" +done <<-EOF > "${dst}index.css" global/tokens/typography.css global/tokens/colors.css @@ -36,4 +36,7 @@ EOF cp print.css "${dst}print.css" +cssmin "${dst}index.css" > "${dst}index.min.css" +cssmin "${dst}print.css" > "${dst}print.min.css" + echo "CSS builded! @ $(date +"%Y-%m-%d %T")"