From 17690f2d73b640cf4bbf082fe96f5b3075a040fe Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 21 Nov 2018 18:30:14 +0100 Subject: build: add build option to minify *.js files Signed-off-by: Jo-Philipp Wich --- modules/luci-base/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/luci-base/Makefile') diff --git a/modules/luci-base/Makefile b/modules/luci-base/Makefile index 06ee7985eb..9bc8ec17a1 100644 --- a/modules/luci-base/Makefile +++ b/modules/luci-base/Makefile @@ -36,13 +36,14 @@ define Host/Configure endef define Host/Compile - $(MAKE) -C src/ clean po2lmo + $(MAKE) -C src/ clean po2lmo jsmin endef define Host/Install $(INSTALL_DIR) $(1)/bin $(INSTALL_DIR) $(1)/lib/lua/5.1 $(INSTALL_BIN) src/po2lmo $(1)/bin/po2lmo + $(INSTALL_BIN) src/jsmin $(1)/bin/jsmin $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/luasrcdiet $(1)/bin/luasrcdiet $(CP) $(HOST_BUILD_DIR)/luasrcdiet $(1)/lib/lua/5.1/ endef -- cgit v1.2.3