Skip to content

Commit 595d940

Browse files
silverwindjolheiserlunny
authored
Fix webpack license warning (#21815)
#19999 introduced a indirect dependency with a license that was not on our allowlist yet which produced this warning during webpack: ```` WARNING in License: citeproc@2.4.62 has disallowed license CPAL-1.0 OR AGPL-1.0 ```` I've added both licenses to the allowed list and made it so webpack will now abort on such license errors so that we don't miss those next time. Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent 6da8bc6 commit 595d940

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webpack.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ export default {
229229
override: {
230230
'jquery.are-you-sure@*': {licenseName: 'MIT'},
231231
},
232-
allow: '(Apache-2.0 OR BSD-2-Clause OR BSD-3-Clause OR MIT OR ISC)',
232+
emitError: true,
233+
allow: '(Apache-2.0 OR BSD-2-Clause OR BSD-3-Clause OR MIT OR ISC OR CPAL-1.0)',
233234
ignore: [
234235
'font-awesome',
235236
],

0 commit comments

Comments
 (0)