]> BookStack Code Mirror - bookstack/blobdiff - dev/build/esbuild.js
Licensing: Added links and tests for new licenses endpoint
[bookstack] / dev / build / esbuild.js
index c47727c2c4e5129d8136bc2812f2e246db930113..53fbf0189f064df10a67db7ce8452c2a4f571754 100644 (file)
@@ -30,6 +30,10 @@ esbuild.build({
     format: 'esm',
     minify: isProd,
     logLevel: 'info',
+    banner: {
+        js: '// See the "/licenses" URI for full package license details',
+        css: '/* See the "/licenses" URI for full package license details */',
+    },
 }).then(result => {
     fs.writeFileSync('esbuild-meta.json', JSON.stringify(result.metafile));
 }).catch(() => process.exit(1));