Skip to content
Snippets Groups Projects
Commit b75b0a75 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Make terser preserve the license comments

parent 660cdff0
No related branches found
No related tags found
No related merge requests found
Pipeline #10966 passed
...@@ -229,12 +229,14 @@ export default { ...@@ -229,12 +229,14 @@ export default {
}), }),
builtins(), builtins(),
checkLicenses && license({ checkLicenses && license({
banner: ` banner: {
commentStyle: 'ignored',
content: `
License: <%= pkg.license %> License: <%= pkg.license %>
Dependencies: Dependencies:
<% _.forEach(dependencies, function (dependency) { if (dependency.name) { %> <% _.forEach(dependencies, function (dependency) { if (dependency.name) { %>
<%= dependency.name %>: <%= dependency.license %><% }}) %> <%= dependency.name %>: <%= dependency.license %><% }}) %>
`, `},
thirdParty: { thirdParty: {
allow: { allow: {
test(dependency) { test(dependency) {
...@@ -267,7 +269,7 @@ Dependencies: ...@@ -267,7 +269,7 @@ Dependencies:
replace({ replace({
"process.env.BUILD": '"' + build + '"', "process.env.BUILD": '"' + build + '"',
}), }),
useTerser ? terser({output: {comments: false}}) : false, useTerser ? terser() : false,
copy({ copy({
targets: [ targets: [
{src: 'assets/silent-check-sso.html', dest:'dist'}, {src: 'assets/silent-check-sso.html', dest:'dist'},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment