gluon-status-page: mark minified js as such

This commit is contained in:
Jan-Niklas Burfeind 2022-12-18 19:50:57 +01:00
parent 886f6387b7
commit 6c0f224456
3 changed files with 5 additions and 3 deletions

View File

@ -17,8 +17,10 @@ define Package/gluon-status-page/install
$(INSTALL_DIR) $(1)/lib/gluon/status-page/providers $(INSTALL_DIR) $(1)/lib/gluon/status-page/providers
$(INSTALL_BIN) $(PKG_BUILD_DIR)/stations $(1)/lib/gluon/status-page/providers/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/stations $(1)/lib/gluon/status-page/providers/
ifndef CONFIG_GLUON_MINIFY ifdef CONFIG_GLUON_MINIFY
$(CP) ./javascript/status-page.js $(1)/lib/gluon/status-page/www/static/status-page.js $(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 endif
$(INSTALL_DIR) $(1)/lib/gluon/status-page/view/ $(INSTALL_DIR) $(1)/lib/gluon/status-page/view/

View File

@ -1,7 +1,7 @@
/* /*
Build using: 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'; 'use strict';