commit 7cb1a90ede1b156b7495c31c9cbc21e0dd168107
parent 37b7b4a93544d25d23d4dd78ce558306dda7644f
Author: Byron Torres <b@torresjrjr.com>
Date: Sun, 8 Nov 2020 22:17:08 +0000
Write minified CSS to new *.min.css file instead
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pdssg b/pdssg
@@ -78,7 +78,9 @@ prepare_dst() {
for stylesheet in ${stylesheets}
do
echo "Minifying ${stylesheet}"
- vim ${stylesheet} -es --not-a-term +'
+ min_stylesheet="${stylesheet%.css}.min.css"
+ cp ${stylesheet} ${min_stylesheet}
+ vim ${min_stylesheet} -es --not-a-term +'
%s/\s*:\s*/:/ge
%s/\s*;\s*/;/ge
%s/\s*,\s*/,/ge