summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-06-05 23:01:08 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-06-05 23:01:08 -0400
commitf7e6dd9b86e861a3481af6df725c697daee104df (patch)
treeddf5fb15c21524348e1bed70cafe869417acc31f /bin
parenta324956d93190cf7c49be741facede8bc8a9f70d (diff)
bin: add minify
Diffstat (limited to 'bin')
-rw-r--r--bin/Makefile2
-rwxr-xr-xbin/minify6
2 files changed, 7 insertions, 1 deletions
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 <s@ricketyspace.net>
+
+awk '{ gsub("^ *", ""); gsub(" {", "{"); printf "%s", $0 }' static/peach.css >static/peach.min.css