Skip to content

Commit 2a2cf08

Browse files
committed
Using banner for putting in license texts manually
1 parent 86f43ce commit 2a2cf08

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

webpack.config.js

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,58 @@ module.exports = {
2626
condition: /^\**!|@preserve|@license|@cc_on/i,
2727
filename: "WebApiClient.LICENSE.txt",
2828
banner: (licenseFile) => {
29-
return `License information can be found in ${licenseFile}`;
29+
return `@preserve
30+
* MIT License
31+
*
32+
* Copyright (c) 2016 Florian Krönert
33+
*
34+
* Permission is hereby granted, free of charge, to any person obtaining a copy
35+
* of this software and associated documentation files (the "Software"), to deal
36+
* in the Software without restriction, including without limitation the rights
37+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
38+
* copies of the Software, and to permit persons to whom the Software is
39+
* furnished to do so, subject to the following conditions:
40+
*
41+
* The above copyright notice and this permission notice shall be included in all
42+
* copies or substantial portions of the Software.
43+
*
44+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
46+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
47+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
48+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
49+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
50+
* SOFTWARE.
51+
*
52+
*/
53+
54+
/* @preserve
55+
* The Bluebird license is included below as Terser keeps removing it (https://github.com/terser/terser/issues/575)
56+
*/
57+
58+
/* @preserve
59+
* The MIT License (MIT)
60+
*
61+
* Copyright (c) 2013-2018 Petka Antonov
62+
*
63+
* Permission is hereby granted, free of charge, to any person obtaining a copy
64+
* of this software and associated documentation files (the "Software"), to deal
65+
* in the Software without restriction, including without limitation the rights
66+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
67+
* copies of the Software, and to permit persons to whom the Software is
68+
* furnished to do so, subject to the following conditions:
69+
*
70+
* The above copyright notice and this permission notice shall be included in
71+
* all copies or substantial portions of the Software.
72+
*
73+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
74+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
75+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
76+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
77+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
78+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
79+
* THE SOFTWARE.
80+
*`;
3081
}
3182
},
3283
}),

0 commit comments

Comments
 (0)