commit 3591b663a0c33feefc236b6aba13e1c808dcafc1
parent b2a465d17ab4691dc9254819ee148213f4aa17bf
Author: Byron Torres <b@torresjrjr.com>
Date: Thu, 15 Oct 2020 16:59:18 +0100
Print cleaner logs when minifying CSS
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pdssg b/pdssg
@@ -73,11 +73,11 @@ prepare_dst() {
echo "Dir: $FEEDS_DIR"
ASSETS_DIR="./ast" # No ending slash!
+ echo "Finding CSS files in assets directory $ASSETS_DIR"
stylesheets=$(find -path "$ASSETS_DIR/*.css")
- echo $stylesheets
for stylesheet in $stylesheets
do
- echo "Minifying CSS file $stylesheet"
+ echo "Minifying $stylesheet"
vim $stylesheet -es --not-a-term +'
%s/\s*:\s*/:/ge
%s/\s*;\s*/;/ge