gluon-web-osm: add minify flag support
This commit is contained in:
parent
389314f58a
commit
0ec3207830
@ -13,7 +13,7 @@ define Package/gluon-config-mode-geo-location-osm/install
|
||||
$(Gluon/Build/Install)
|
||||
|
||||
$(INSTALL_DIR) $(1)/lib/gluon/config-mode/www/static/
|
||||
$(LN) /lib/gluon/web/www/static/gluon-web-osm.min.js $(1)/lib/gluon/config-mode/www/static/gluon-web-osm.js
|
||||
$(LN) /lib/gluon/web/www/static/gluon-web-osm.js $(1)/lib/gluon/config-mode/www/static/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackageGluon,gluon-config-mode-geo-location-osm))
|
||||
|
@ -8,4 +8,17 @@ define Package/gluon-web-osm
|
||||
TITLE:=base src for OSM inlay
|
||||
endef
|
||||
|
||||
PKG_CONFIG_DEPENDS += CONFIG_GLUON_MINIFY
|
||||
|
||||
define Package/gluon-web-osm/install
|
||||
$(Gluon/Build/Install)
|
||||
$(INSTALL_DIR) $(1)/lib/gluon/web/www/static/
|
||||
|
||||
ifdef CONFIG_GLUON_MINIFY
|
||||
$(INSTALL_DATA) ./javascript/gluon-web-osm.min.js $(1)/lib/gluon/web/www/static/gluon-web-osm.js
|
||||
else
|
||||
$(INSTALL_DATA) ./javascript/gluon-web-osm.js $(1)/lib/gluon/web/www/static/
|
||||
endif
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackageGluon,gluon-web-osm))
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Build using:
|
||||
|
||||
uglifyjs javascript/gluon-web-osm.js -o files/lib/gluon/web/www/static/gluon-web-osm.min.js -c -m
|
||||
uglifyjs javascript/gluon-web-osm.js -o javascript/gluon-web-osm.min.js -c -m
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
Loading…
Reference in New Issue
Block a user