Permalink
Browse files

pre-compress static assets using zöpfli

This saves 3 KB (192 KB → 189 KB).
  • Loading branch information...
stapelberg committed Jun 28, 2016
1 parent 071b599 commit 084d9d337e2f65be4aeb3e1518b310a3de667a60
Showing with 5 additions and 1 deletion.
  1. +5 −1 static/Makefile
View
@@ -1,4 +1,8 @@
-all: instant.min.js reconnecting-websocket.min.js Roboto-Regular.woff Roboto-Bold.woff Inconsolata.woff debcodesearch.min.css
+all: instant.min.js.gz reconnecting-websocket.min.js.gz Roboto-Regular.woff.gz Roboto-Bold.woff.gz Inconsolata.woff.gz debcodesearch.min.css.gz
+
+%.gz: %
+ echo "ZÖPFLI $<"
+ zopfli $<
%.woff: %.?tf
echo "WOFF $<"

0 comments on commit 084d9d3

Please sign in to comment.