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 {
}),
builtins(),
checkLicenses && license({
banner: `
banner: {
commentStyle: 'ignored',
content: `
License: <%= pkg.license %>
Dependencies:
<% _.forEach(dependencies, function (dependency) { if (dependency.name) { %>
<%= dependency.name %>: <%= dependency.license %><% }}) %>
`,
`},
thirdParty: {
allow: {
test(dependency) {
......@@ -267,7 +269,7 @@ Dependencies:
replace({
"process.env.BUILD": '"' + build + '"',
}),
useTerser ? terser({output: {comments: false}}) : false,
useTerser ? terser() : false,
copy({
targets: [
{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