From 6c0f22445651647a5cd2e7be08e4c7ef6c02e42b Mon Sep 17 00:00:00 2001 From: Jan-Niklas Burfeind Date: Sun, 18 Dec 2022 19:50:57 +0100 Subject: [PATCH] gluon-status-page: mark minified js as such --- package/gluon-status-page/Makefile | 6 ++++-- package/gluon-status-page/javascript/status-page.js | 2 +- .../static/status-page.js => javascript/status-page.min.js} | 0 3 files changed, 5 insertions(+), 3 deletions(-) rename package/gluon-status-page/{files/lib/gluon/status-page/www/static/status-page.js => javascript/status-page.min.js} (100%) diff --git a/package/gluon-status-page/Makefile b/package/gluon-status-page/Makefile index b4eea874..0b4bcb6d 100644 --- a/package/gluon-status-page/Makefile +++ b/package/gluon-status-page/Makefile @@ -17,8 +17,10 @@ define Package/gluon-status-page/install $(INSTALL_DIR) $(1)/lib/gluon/status-page/providers $(INSTALL_BIN) $(PKG_BUILD_DIR)/stations $(1)/lib/gluon/status-page/providers/ -ifndef CONFIG_GLUON_MINIFY - $(CP) ./javascript/status-page.js $(1)/lib/gluon/status-page/www/static/status-page.js +ifdef CONFIG_GLUON_MINIFY + $(INSTALL_DATA) ./javascript/status-page.min.js $(1)/lib/gluon/status-page/www/static/status-page.js +else + $(INSTALL_DATA) ./javascript/status-page.js $(1)/lib/gluon/status-page/www/static/status-page.js endif $(INSTALL_DIR) $(1)/lib/gluon/status-page/view/ diff --git a/package/gluon-status-page/javascript/status-page.js b/package/gluon-status-page/javascript/status-page.js index 1360253c..016e20ee 100644 --- a/package/gluon-status-page/javascript/status-page.js +++ b/package/gluon-status-page/javascript/status-page.js @@ -1,7 +1,7 @@ /* Build using: - uglifyjs javascript/status-page.js -o files/lib/gluon/status-page/www/static/status-page.js -c -m + uglifyjs javascript/status-page.js -o javascript/status-page.min.js -c -m */ 'use strict'; diff --git a/package/gluon-status-page/files/lib/gluon/status-page/www/static/status-page.js b/package/gluon-status-page/javascript/status-page.min.js similarity index 100% rename from package/gluon-status-page/files/lib/gluon/status-page/www/static/status-page.js rename to package/gluon-status-page/javascript/status-page.min.js