common: generate optimised css file for light
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 11 Jun 2017 00:19:05 +0000 (02:19 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 17 Jul 2017 15:13:41 +0000 (17:13 +0200)
commit330e20e6262283b2e68fc22227672250849985e1
treeb731e39e9313e5378668817d0d02a407aa013155
parente1a650f4c80d7108a0f3e84b4b73271e42c67bcc
common: generate optimised css file for light

Strip whitespace and comments to reduce download size by 6kB (35%).
Silences site analysers such as Google PageSpeed about unminified CSS:

> Compacting CSS code can save many bytes of data and speed up download and
> parse times.
> Minifying http://sheet.shiar.nl/base.css could save 2KiB (41% reduction)
> after compression.

Tried a couple of existing tools [from Debian] but they mostly failed to
parse more complex rules, or tried to make unwanted "improvements".
Rather write some simple regexes to specifically and transparently replace
whitespace and comments.
.gitignore
Makefile
light.css [deleted symlink]