You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2021/08/20 12:52:18 UTC

[incubator-streampipes] branch dev updated: [STREAMPIPES-398] Extend prebuild script with custom favicon

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new aebae3f  [STREAMPIPES-398] Extend prebuild script with custom favicon
     new 51b3fa8  Merge branch 'dev' of github.com:apache/incubator-streampipes into dev
aebae3f is described below

commit aebae3f435824558ee421549c75bf8c4418e3b0c
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Fri Aug 20 14:51:42 2021 +0200

    [STREAMPIPES-398] Extend prebuild script with custom favicon
---
 ui/deployment/prebuild.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ui/deployment/prebuild.js b/ui/deployment/prebuild.js
index 3342944..fcde036 100644
--- a/ui/deployment/prebuild.js
+++ b/ui/deployment/prebuild.js
@@ -102,8 +102,13 @@ if (process.env.LOGO_HEADER_LOC !== undefined) {
 }
 
 if (process.env.LOGO_NAV_LOC !== undefined) {
-    console.log('Using custom-provided navbar logo' + process.env.LOGO_NAV_LOC);
+    console.log('Using custom-provided navbar logo ' + process.env.LOGO_NAV_LOC);
     fs.writeFileSync('src/assets/img/sp/logo-navigation.png', fs.readFileSync(process.env.LOGO_NAV_LOC));
 }
 
+if (process.env.FAVICON_LOC !== undefined) {
+    console.log('Using custom-provided favicon ' + process.env.FAVICON_LOC);
+    fs.writeFileSync('src/assets/img/favicon/favicon-96x96.png', fs.readFileSync(process.env.FAVICON_LOC));
+}
+
 console.log('Pre-Build finished.');