From 1fb8bf91a6a796c307e31338cc9b850c41d6dd6d Mon Sep 17 00:00:00 2001 From: Roland Stigge Date: Mon, 26 Feb 2018 22:02:27 +0100 Subject: Minify HTML/CSS/JS --- Makefile | 6 ++++++ debian/control | 2 +- src/webbox.cpp | 2 +- 3 files changed, 8 insertions(+), 2 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/ diff --git a/debian/control b/debian/control index 8c4e16d..5dbb8a0 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: webbox Section: web Priority: extra Maintainer: Roland Reichwein -Build-Depends: debhelper (>= 9), qtbase5-dev, libfcgi-dev +Build-Depends: debhelper (>= 9), qtbase5-dev, libfcgi-dev, node-uglify, htmlmin, cleancss Standards-Version: 4.1.3 Homepage: http://www.reichwein.it/webbox/ diff --git a/src/webbox.cpp b/src/webbox.cpp index 9fa8392..4afcb66 100644 --- a/src/webbox.cpp +++ b/src/webbox.cpp @@ -13,7 +13,7 @@ #include #include -#define PROGRAMVERSION "1.5" +#define PROGRAMVERSION "1.6" #define BUFSIZE 1000000 // XML special characters: -- cgit v1.2.3