build: put licenses in separate file
This commit is contained in:
parent
563414226a
commit
0b52921181
4 changed files with 12 additions and 22 deletions
|
|
@ -72,11 +72,10 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
watch ? {} :license({
|
||||
banner: {
|
||||
content: {
|
||||
file: path.join(__dirname, 'license-header.txt'),
|
||||
},
|
||||
}
|
||||
thirdParty: {
|
||||
includeSelf: true,
|
||||
output: 'app/client/LICENSES',
|
||||
},
|
||||
}),
|
||||
watch ? {} : copy({
|
||||
targets: [
|
||||
|
|
|
|||
|
|
@ -32,11 +32,10 @@ module.exports = {
|
|||
nodeResolve(),
|
||||
terser(),
|
||||
license({
|
||||
banner: {
|
||||
content: {
|
||||
file: path.join(__dirname, 'license-header.txt'),
|
||||
},
|
||||
}
|
||||
thirdParty: {
|
||||
includeSelf: true,
|
||||
output: 'app/launcher/LICENSES',
|
||||
},
|
||||
}),
|
||||
copy({
|
||||
targets: [
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
Bundle of <%= pkg.name %>
|
||||
Generated: <%= moment().format('YYYY-MM-DD') %>
|
||||
Version: <%= pkg.version %>
|
||||
Dependencies:
|
||||
<% _.forEach(dependencies, function (dependency) { %>
|
||||
<%= dependency.text() %>
|
||||
<% }) %>
|
||||
|
|
@ -37,11 +37,10 @@ module.exports = {
|
|||
preferBuiltins: true
|
||||
}),
|
||||
license({
|
||||
banner: {
|
||||
content: {
|
||||
file: path.join(__dirname, 'license-header.txt'),
|
||||
},
|
||||
}
|
||||
thirdParty: {
|
||||
includeSelf: true,
|
||||
output: 'app/server/LICENSES',
|
||||
},
|
||||
}),
|
||||
terser({
|
||||
sourceMap: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue