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