From f7e6dd9b86e861a3481af6df725c697daee104df Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Sun, 5 Jun 2022 23:01:08 -0400 Subject: bin: add minify --- bin/Makefile | 2 +- bin/minify | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 bin/minify diff --git a/bin/Makefile b/bin/Makefile index e59851b..a06562e 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -1,4 +1,4 @@ -SH_FILES= +SH_FILES=minify all: check fmt .PHONY: all diff --git a/bin/minify b/bin/minify new file mode 100755 index 0000000..911c166 --- /dev/null +++ b/bin/minify @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# +# SPDX-License-Identifier: ISC +# Copyright © 2022 siddharth ravikumar + +awk '{ gsub("^ *", ""); gsub(" {", "{"); printf "%s", $0 }' static/peach.css >static/peach.min.css -- cgit v1.2.3