summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Stigge <stigge@antcom.de>2018-02-26 22:02:27 +0100
committerRoland Stigge <stigge@antcom.de>2018-02-26 22:02:27 +0100
commit1fb8bf91a6a796c307e31338cc9b850c41d6dd6d (patch)
tree6bdd52de02afdc725944a9d80199b88daaf3e7c4 /Makefile
parent57c1a0adda4401bd307ce90e26ddcf65fb502149 (diff)
Minify HTML/CSS/JS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 157e3e0..cdb6910 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,12 @@ all:
install: all
mkdir -p $(DESTDIR)/var/www/webbox
cp -r html/* $(DESTDIR)/var/www/webbox/
+
+ # Minify
+ uglifyjs html/webbox.js -m -c > $(DESTDIR)/var/www/webbox/webbox.js
+ htmlmin html/index.html $(DESTDIR)/var/www/webbox/index.html
+ cleancss -o $(DESTDIR)/var/www/webbox/webbox.css html/webbox.css
+
mkdir -p $(DESTDIR)/usr/lib/webbox
cp src/query $(DESTDIR)/usr/lib/webbox/