diff options
author | siddharth ravikumar <s@ricketyspace.net> | 2022-06-05 23:01:08 -0400 |
---|---|---|
committer | siddharth ravikumar <s@ricketyspace.net> | 2022-06-05 23:01:08 -0400 |
commit | f7e6dd9b86e861a3481af6df725c697daee104df (patch) | |
tree | ddf5fb15c21524348e1bed70cafe869417acc31f | |
parent | a324956d93190cf7c49be741facede8bc8a9f70d (diff) |
bin: add minify
-rw-r--r-- | bin/Makefile | 2 | ||||
-rwxr-xr-x | bin/minify | 6 |
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 |