From fbaeced84665fb09825299218a2e57b392fc1e66 Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 18 Mar 2021 14:20:44 -0700 Subject: [PATCH] minifying css to save on bandwidth and removing all.css from fontawesome --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index f38e8a6..a7972d8 100644 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -# First scaffold +# First scaffold gensite -s # Second root pages/resources for f in pages/*.md; do echo $f && gensite -r $f;done @@ -8,3 +8,6 @@ for f in root/*; do echo $f && gensite -R $f ;done for post in posts/*.md; do echo $post && gensite -p $post;done # Finally the notes for note in notes/*.md; do echo $note && gensite -P $note;done +# Next we do some optimizing of the css (reduces size from 5.5KB to 2.5KB +echo curl -X POST -s --data-urlencode 'input@root/style.css' https://cssminifier.com/raw \> .mirror/style.css +curl -X POST -s --data-urlencode 'input@root/style.css' https://cssminifier.com/raw > .mirror/style.css