From aa2e3c1c2926f2750e3ab17f61ed1bc5836cf718 Mon Sep 17 00:00:00 2001
From: Volker Schukai <volker.schukai@schukai.com>
Date: Wed, 20 Nov 2024 16:39:13 +0100
Subject: [PATCH] fix: remove license info for development  #9

---
 source/javascript/generate.go | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/source/javascript/generate.go b/source/javascript/generate.go
index 44a4ba7..55e1ea1 100644
--- a/source/javascript/generate.go
+++ b/source/javascript/generate.go
@@ -136,15 +136,19 @@ func runESBuild(source, dist, scriptDist, styleDist string, development bool, ta
 		}
 	}
 
-	footer := map[string]string{
-		"js": `
+	var footer map[string]string
+
+	if !development {
+
+		footer = map[string]string{
+			"js": `
 /*
  * Copyright protects this code. Use, reproduction, or
  * modification of this code without prior written permission from the copyright holder
  * is strictly prohibited. For inquiries regarding licenses or usage rights,
  * please contact schukai GmbH.
  */`,
-		"css": `
+			"css": `
 /*
  * Copyright protects this code. Use, reproduction, or
  * modification of this code without prior written permission from the copyright holder
@@ -152,6 +156,8 @@ func runESBuild(source, dist, scriptDist, styleDist string, development bool, ta
  * please contact schukai GmbH.
  */
 `,
+		}
+
 	}
 
 	var sourceMap = api.SourceMapNone
-- 
GitLab