diff --git a/source/javascript/generate.go b/source/javascript/generate.go index 44a4ba73df0bf6c4c22958d639c703259735c888..55e1ea1567e2d07257f1a09dbee38d34bae8aedd 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